There is a second side effect to localizing global functions. And that is, if some other addon were to hook the function AFTER your addon has grabbed the local reference, when you call the local reference of the function, the hooked version doesn't get called.
[This does not apply to hooksecurefunc().]
Even if the gains are minuscule, its still a good programming practice to optimize when possible if it does not get in the way of code readability and maintenance.
__________________
Author of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, GatherMate2, Routes and Cartographer_Routes
|