WoWInterface - View Single Post - Hooking function when other addons are using local copies of it
View Single Post
08-16-19, 05:41 PM   #3
A Murloc Raider
vaindil's Avatar
Join Date: Jan 2015
Posts: 6
Originally Posted by Kanegasi View Post
Don't use a local copy.

Localizing a function provides a minor performance increase for functions called often, especially each frame. This function is single use when the user requests it during a flight, it's silly to localize it.
This makes sense to me, but I can't control what other addons are doing, unfortunately. Maybe this hypothetical doesn't make sense, but what if an addon needed to hook one of those functions that it DOES make sense to localize? Are you just SOL?
  Reply With Quote