]> granicus.if.org Git - transmission/commit
Reduce torrents model memory requirements (Qt client)
authorMike Gelfand <mikedld@mikedld.com>
Sun, 24 Apr 2016 07:56:41 +0000 (07:56 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Sun, 24 Apr 2016 07:56:41 +0000 (07:56 +0000)
commite60e75fadc7b78e1219623b0af794b0cfe9a5b8f
tree071ac50a13900beffb31fd2e56663241707f2ec5
parent682b11aac435f1721427d95400380e32f86c251c
Reduce torrents model memory requirements (Qt client)

Keep torrents sorted by ID. This allows to remove ID to row/torrent mappings
(using binary search instead) and thus also reduce complexity a bit.
qt/TorrentModel.cc
qt/TorrentModel.h