# ElvUI ToxiUI

##  (2026-04-20)
 

- perf: pre-compute tag color prefixes, eliminate per-tick string allocs  
    FormatColorTag was calling FastRGB (string.format) + two concats on  
    every UNIT\_HEALTH and UNIT\_POWER\_FREQUENT tick per unit frame. Class  
    and reaction color hex strings are constants — now built once at tag  
    init into lookup tables. Also consolidates health percent formatting  
    into a single format() call and drops a redundant tostring() in the  
    Classic power percent tag.  
- perf: eliminate per-tick closure allocation in gradient color updates  
    Health, power, and castbar PostUpdateColor hooks called  
    GenerateClosure on every invocation, allocating a new function  
    object that was used once and discarded. Replace with direct method  
    calls that return colorMap/colorEntry values and pass them straight  
    into SetGradientColors.  
- perf: replace per-frame OnUpdate with tickers and on-demand flush  
    - Core event manager: replace persistent OnUpdate with E:Delay(0)  
      flush, only scheduled when the queue is non-empty  
    - WunderBar SecureFlyOut: replace per-frame cooldown OnUpdate with  
      C\_Timer.NewTicker(0.5) per slot; cancel on slot reset and hide  
    - VehicleBar vigor bar: replace per-frame animation OnUpdate with  
      C\_Timer.NewTicker(0.05); cancel in Disable()  
