]> granicus.if.org Git - transmission/commit
(trunk libT) CPU optimization in peer-mgr.c's rechokeDownloads()
authorJordan Lee <jordan@transmissionbt.com>
Tue, 10 May 2011 03:50:54 +0000 (03:50 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 10 May 2011 03:50:54 +0000 (03:50 +0000)
commit3aaeaddbaf23a2a0b33f89fa3381cf698b722952
tree4a2f378998543d8ab091245c7e6475d17b6e00f7
parent0b11909854cc2301507ae855fa6883e33a2079c6
(trunk libT) CPU optimization in peer-mgr.c's rechokeDownloads()

Instead of recalculating interesting pieces for each peer we loop through, calculate them just once into a bitfield and then reuse that bitfield inside the loop.
libtransmission/peer-mgr.c