Quantcast WoWInterface - View Single Post - Omen local variables confuses me - help ty :)
View Single Post
03-25-13, 01:57 PM   #3
fRodzet
A Flamescale Wyrmkin
Join Date: Mar 2013
Posts: 114
Originally Posted by Haleth View Post
The author creates local copies of references to functions they use often for a small performance improvement. Calling a function using a global reference is slightly slower than using a local reference.

The difference is very small, though. If you call a function a million times, you might see a millisecond difference or so. It can be worth considering for addons which do a lot of calculations in combat, like Omen.
Ty for the answer - so in fact if i was to rewrite his addon i could actually leave these kind of locals behind?
  Reply With Quote