Optimize the startup.
commit9068058e43eb4fe65632d575d186144ada7191fe
authorJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Thu, 17 Jul 2008 18:42:32 +0000 (17 20:42 +0200)
committerJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Thu, 17 Jul 2008 18:42:32 +0000 (17 20:42 +0200)
treef1e6ad0410b64aaac4b523e204b366f251542c73
parent802bd5916251219960a3286cf3194b69e5f5950d
Optimize the startup.

* Only manipulate the #piece table once in startup.

* Cache the path-map value to avoid doing excessive amounts of mnesia lookups.
lib/etorrent-1.0/src/etorrent_fs_checker.erl
lib/etorrent-1.0/src/etorrent_piece.erl