When you get right down to it, performance-wise, defining a function as a local will reference it immediately upon calling. Calling a function as a method (table:func()) causes an indexing operation on table to find func() in order to call it. As such, declaring a function as a method takes slightly longer to call than a function declared as a local.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
|