mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-10-27 06:00:54 +00:00
perf: optimize spell and unit ID lookups with caching and fix range cache memory leaks
This commit is contained in:
@@ -498,6 +498,7 @@ end
|
||||
function HealBot_OnEvent_PartyMembersChanged(this)
|
||||
HealBot_Model:PreserveStateByGUID()
|
||||
HealBot_Integrations_PruneNampower()
|
||||
if HealBot_UpdateUnitIDCache then HealBot_UpdateUnitIDCache() end
|
||||
if HealBot_IsFighting then
|
||||
HealBot_Action_PartyChanged()
|
||||
end
|
||||
@@ -557,6 +558,7 @@ end
|
||||
function HealBot_OnEvent_SpellsChanged(this, arg1)
|
||||
if arg1 then return; end
|
||||
HealBot_AddDebug("HB: SpellsChanged");
|
||||
if HealBot_CacheSpellIDs then HealBot_CacheSpellIDs() end
|
||||
HealBot_SpellsInitFlag = 2;
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user