mirror of
https://github.com/transmission/transmission.git
synced 2026-04-28 12:44:15 +01:00
speedups found by chrome's profiler
This commit is contained in:
@@ -1502,7 +1502,6 @@ Transmission.prototype =
|
||||
|
||||
this.setPref(Prefs._ShowInspector, true);
|
||||
this.updateInspector();
|
||||
this.refreshDisplay();
|
||||
},
|
||||
|
||||
/*
|
||||
@@ -1523,7 +1522,6 @@ Transmission.prototype =
|
||||
}
|
||||
|
||||
this.setPref(Prefs._ShowInspector, false);
|
||||
this.refreshDisplay();
|
||||
},
|
||||
|
||||
refreshMetaData: function(ids) {
|
||||
@@ -1672,12 +1670,6 @@ Transmission.prototype =
|
||||
}
|
||||
},
|
||||
|
||||
refreshDisplay: function()
|
||||
{
|
||||
for (var i=0, row; row=this._rows[i]; ++i)
|
||||
row.render(this);
|
||||
},
|
||||
|
||||
/*
|
||||
* Set the alternating background colors for torrents
|
||||
*/
|
||||
@@ -2013,7 +2005,7 @@ Transmission.prototype =
|
||||
if (!this.refilterTimer)
|
||||
{
|
||||
var tr = this;
|
||||
this.refilterTimer = setTimeout(function() {tr.refilter();}, 200);
|
||||
this.refilterTimer = setTimeout(function() {tr.refilter();}, 500);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2057,7 +2049,7 @@ Transmission.prototype =
|
||||
fragment.appendChild(row.getElement());
|
||||
rows.push(row);
|
||||
}
|
||||
$('ul.torrent_list li').remove();
|
||||
$('ul.torrent_list').empty();
|
||||
delete this._rows;
|
||||
this._rows = rows;
|
||||
this._torrent_list.appendChild(fragment);
|
||||
@@ -2067,7 +2059,6 @@ Transmission.prototype =
|
||||
this.updateStatusbar();
|
||||
if (sel.length !== new_sel_count)
|
||||
this.selectionChanged();
|
||||
this.refreshDisplay();
|
||||
this.refreshFilterButton();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user