mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 07:17:57 +00:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user