(trunk web) in Transmission.refilter(), don't rebuild the row array if the filtered + sorted list of torrents hasn't changed. This is a big CPU win on large torrent lists.

This commit is contained in:
Jordan Lee
2011-08-26 00:43:35 +00:00
parent ab7305fe64
commit e1641792e9
2 changed files with 55 additions and 37 deletions

View File

@@ -369,6 +369,9 @@ TorrentRow.prototype =
getTorrent: function() {
return this._torrent;
},
getTorrentId: function() {
return this.getTorrent().getId();
},
isEven: function() {
return this.getElement().className.indexOf('even') != -1;
},