Quantcast WoWInterface - View Single Post - Wraper functions for 8.0.1 spell/aura changes
View Single Post
05-01-18, 05:51 PM   #14
boomboo
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Nov 2009
Posts: 4
Originally Posted by Rainrider View Post
Test again, but instead 'nothing' use the name of an aura you expect to find (like cast Rejuvenation on yourself and run the test with it). The cache is twice as fast (this is the best case however, since because of the use of GetTime() and the test freezing the client, the cache is hit every time except for the initial call)
I never tested with `nothing`, my tests were done vs. a real training dummy over X minutes. There might be edge cases where using cache would be better (ie. for some reason you want to know about one specific debuff on a raid boss that wasn't applied by you).

In most other cases if you filter correctly (eg. use HARMFUL|PLAYER) the number of auras should be small enough to iterate over so that the overhead of creating / destroying the cache is worse than looping.
  Reply With Quote