Revision 609833
Go back to digest for 3rd December 2006Optimization in Networking Tools
Joris Guisson committed changes in /trunk/extragear/network/ktorrent:
Changes :
- Do rechecking of chunks during uploading once every 5 chunks, when no corruptions have been found
- Minimize calls to gettimeofday by using a global time stamp variable we update only a couple of times per second (Thanks to Thiago for coming up with the idea). SocketMonitor and Speed still use gettimeofday, because of their high precision requirements.
File Changes
Modified 11 files
- /trunk/extragear/network/ktorrent
- /apps/ktorrent/ktorrentcore.cpp
- /libktorrent/net/bufferedsocket.cpp
- /libktorrent/net/bufferedsocket.h
- /libktorrent/net/socketmonitor.cpp
- /libktorrent/net/speed.cpp
- /libktorrent/net/speed.h
- /libktorrent/torrent/chunkmanager.cpp
- /libktorrent/torrent/chunkmanager.h
- /libktorrent/torrent/torrentcontrol.cpp
- /libktorrent/util/functions.cpp
- /libktorrent/util/functions.h
11 files changed in total