Quantcast WoWInterface - View Single Post - Omen local variables confuses me - help ty :)
View Single Post
03-25-13, 01:48 PM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
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.
  Reply With Quote