WebUI: Optimize table performance with virtual list

Adding virtual list support to dynamic tables to improve performance on large lists, I observed a 100x performance improvement on rendering on a torrent table with 5000 torrents.
This optimization is disabled by default and can be enabled in options.

PR #22502.
This commit is contained in:
tehcneko
2025-04-20 17:18:26 +08:00
committed by GitHub
parent 250fef4ee7
commit b4a16f6464
9 changed files with 474 additions and 359 deletions

View File

@@ -248,7 +248,7 @@ window.qBittorrent.PropTrackers ??= (() => {
}
});
torrentTrackersTable.setup("torrentTrackersTableDiv", "torrentTrackersTableFixedHeaderDiv", torrentTrackersContextMenu);
torrentTrackersTable.setup("torrentTrackersTableDiv", "torrentTrackersTableFixedHeaderDiv", torrentTrackersContextMenu, true);
return exports();
})();