View Single Post
06-18-18, 12:58 PM   #9
Siku
A Fallenroot Satyr
 
Siku's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 29
That's just localizing the function, because local functions are something along the lines of ~25% faster than global functions in terms of executions.

The problem with map position is that some position-tracking addons uses it OnUpdate which was fine when it was two simple numbers. But the new API causes that code to create a new table every frame. Sure, those tables end up being collected as garbage sooner or later, but it's rather annoying and may scare users into thinking something is wrong with your addon.
  Reply With Quote