View Single Post
08-05-14, 12:17 PM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,330
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)
  Reply With Quote