refactor(Core/LFG): Reduce memory allocations in LFG hot paths (#25064)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-07-05 09:52:41 -05:00
committed by GitHub
parent 523bd83ad6
commit fe82e9faf8
3 changed files with 52 additions and 60 deletions

View File

@@ -374,7 +374,7 @@ namespace lfg
LfgDungeonSet temporal;
LfgDungeonSet& dungeons = QueueDataStore[check.guids[i]].dungeons;
std::set_intersection(proposalDungeons.begin(), proposalDungeons.end(), dungeons.begin(), dungeons.end(), std::inserter(temporal, temporal.begin()));
proposalDungeons = temporal;
std::swap(proposalDungeons, temporal);
}
if (proposalDungeons.empty())