mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
WebUI: Improve lookup performance when filtering by tracker
Torrent hashes in tracker list are now kept in sets instead of arrays. PR #21405.
This commit is contained in:
parent
449ca96e28
commit
d8e24314ec
2 changed files with 2 additions and 3 deletions
|
@ -805,8 +805,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
trackerListItem = { host: host, trackerTorrentMap: new Map() };
|
||||
trackerList.set(hash, trackerListItem);
|
||||
}
|
||||
|
||||
trackerListItem.trackerTorrentMap.set(tracker, [...torrents]);
|
||||
trackerListItem.trackerTorrentMap.set(tracker, new Set(torrents));
|
||||
}
|
||||
updateTrackers = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue