Revision 856351
Go back to digest for 7th September 2008Optimization in Networking Tools
Joris Guisson committed changes in /trunk/extragear/network/ktorrent:
Revamped chunk memory management completely:
- Chunks are no longer loaded completely, only the parts which are needed
- During the download of a chunk, pieces will be saved immediatly if possible (i.e. the hash has been computed with it)
- Fixed bug causing mapped mode not be allowed for multifile torrents
- Dropped support for migrating very old current_chunks files (pre 1.2)
This reduces memory usage considerably
File Changes
Added 2 files
- /trunk/extragear/network/ktorrent/libbtcore/diskio
- /piecedata.cpp
- /piecedata.h
Modified 29 files
- /trunk/extragear/network/ktorrent
- /libbtcore/CMakeLists.txt
- /libktcore/ktorrent.kcfg
- /libbtcore/datachecker/multidatachecker.cpp
- /libbtcore/diskio/cache.cpp
- /libbtcore/diskio/cache.h
- /libbtcore/diskio/cachefile.cpp
- /libbtcore/diskio/chunk.cpp
- /libbtcore/diskio/chunk.h
- /libbtcore/diskio/chunkmanager.cpp
- /libbtcore/diskio/chunkmanager.h
- /libbtcore/diskio/dndfile.cpp
- /libbtcore/diskio/dndfile.h
- /libbtcore/diskio/multifilecache.cpp
- /libbtcore/diskio/multifilecache.h
- /libbtcore/diskio/singlefilecache.cpp
- /libbtcore/diskio/singlefilecache.h
- /libbtcore/download/chunkdownload.cpp
- /libbtcore/download/chunkdownload.h
- /libbtcore/download/downloader.cpp
- /libbtcore/download/downloader.h
- /libbtcore/download/packet.cpp
- /libbtcore/download/webseed.cpp
- /libbtcore/migrate/ccmigrate.cpp
- /libbtcore/peer/packetwriter.cpp
- /libbtcore/peer/peeruploader.cpp
- /libbtcore/torrent/advancedchokealgorithm.cpp
- /libbtcore/util/bitset.cpp
- /libbtcore/util/bitset.h
- /libktcore/interfaces/functions.cpp
31 files changed in total