Twintop / TwintopInsanityBar

Twintop's Resource Bar (formerly Twintop's Insanity Bar), a multi-class resource addon for World of Warcraft
MIT License
12 stars 7 forks source link

Cache logic symbols for bar text #393

Closed Twintop closed 6 months ago

Twintop commented 6 months ago

Every time the bar needs to refresh the bar text, it currently does a scan to locate all logic symbols in the string to then use the indexes for variable validation and logic checking. This causes lots of unneeded CPU and memory overhead that scales with the complexity of the bar text logic.

Add caching to this layer so it only does this scan when it sees a new bar text for the first time.