Fix: expand table pooling across modules to reduce garbage collection

This commit is contained in:
Bluewhale1337
2026-09-13 20:09:46 +02:00
parent 27ba0a386e
commit 7beff1c4ca
8 changed files with 21 additions and 9 deletions
+2 -1
View File
@@ -184,7 +184,7 @@ function HealBot_OnEvent_UnitAura(this, unit)
local iconCount = 0
local i = 1;
HealBot_UnitDebuff[unit] = nil;
local trackedTextures = {}
local trackedTextures = HealBot_GetTable()
while true do
local debuff, tmp, debuff_type = UnitDebuff(unit, i, 1)
@@ -301,5 +301,6 @@ function HealBot_OnEvent_UnitAura(this, unit)
-- Defer UI updates
HealBot_View_DirtyUnits[unit] = true
HealBot_ReleaseTable(trackedTextures)
end
end