Shave off a lot of space by optimizing mnesia tables via #path_map.
commit19b41478a50293c49a90b9070012f7eb5d68d8ca
authorJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Sun, 6 Jul 2008 15:14:05 +0000 (6 17:14 +0200)
committerJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Sun, 6 Jul 2008 15:14:05 +0000 (6 17:14 +0200)
tree056cfa0e87731820bea865bb7fc8bba05e617c01
parent7af8ea84f4768ab4a9f01274c20e9265d5039be6
Shave off a lot of space by optimizing mnesia tables via #path_map.

The thing that used all the memory was the #piece table containing
full path-names for each piece to download. This got extremely big
over time and became the main space user.

This change uses the #path_map table to cache the file names and
then only passes around integers.
lib/etorrent-1.0/src/etorrent_fs.erl
lib/etorrent-1.0/src/etorrent_fs_checker.erl
lib/etorrent-1.0/src/etorrent_fs_pool_sup.erl
lib/etorrent-1.0/src/etorrent_fs_process.erl
lib/etorrent-1.0/src/etorrent_path_map.erl
lib/etorrent-1.0/src/etorrent_t_control.erl