]> granicus.if.org Git - transmission/commit
(trunk libT) more heap pruning: avoid four unnecessary malloc() + free() calls per...
authorJordan Lee <jordan@transmissionbt.com>
Wed, 6 Apr 2011 23:27:11 +0000 (23:27 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 6 Apr 2011 23:27:11 +0000 (23:27 +0000)
commit712ee263deee49d29d1989c3da8057af90d979fc
tree09d51c7ad40f876dd7f37802fb69b73c34b07926
parent0a0bf016b1eab3a3cc6bdd20a67d7bb185a4fff7
(trunk libT) more heap pruning: avoid four unnecessary malloc() + free() calls per tr_peer.

This commit also changes tr_recentHistory from being a general-purpose tool to being a little more hardcoded for the only purpose it's used, in tr_peerMgr. If its files (history.[ch]) don't find any other "customers" in libtransmission, eventually it should be demoted to being a private helper class inside of peer-mgr.c and have the history.[ch] files removed from the build.
libtransmission/history-test.c
libtransmission/history.c
libtransmission/history.h
libtransmission/peer-mgr.c