Hooking function when other addons are using local copies of it
View Single Post
08-16-19, 05:41 PM
A Murloc Raider
Join Date: Jan 2015
Originally Posted by
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?
View Public Profile
Send a private message to vaindil
Find More Posts by vaindil