]> granicus.if.org Git - transmission/commit
(trunk libT) CPU improvement in torrent.c's torrentInit()
authorJordan Lee <jordan@transmissionbt.com>
Tue, 10 May 2011 04:46:44 +0000 (04:46 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 10 May 2011 04:46:44 +0000 (04:46 +0000)
commit94cc3f87f7d7e96d4ef96ffe850b5355a2994441
tree23a6edb8f02edbb8d4d7f11042ccdba770ff3860
parent3aaeaddbaf23a2a0b33f89fa3381cf698b722952
(trunk libT) CPU improvement in torrent.c's torrentInit()

Add the new torrent to the session's torrent list by prepending it instead of appending it. That way we don't have to walk the list in order to add it. tr_session.torrentList is an unordered list, so there's no real difference between prepending and appending.
libtransmission/peer-mgr.c
libtransmission/torrent.c