Originally Posted by
GKEnialb
New version with significant performance improvements (may not notice the improvements without a large number of tokens on the map).
bmos, since you were interested, the places with the most improvements are where you find an OptData reference in image.lua and token_height_indication.lua (don't update measurements when nothing changes) and the replacement of the override of getWidgetList in token_height_indication.lua with a call to refreshHeights from onInit in image.lua (don't update heights lots and lots and lots and lots of times - the function was a workaround I had to ensure the heights being updated when the map loaded before I overrode image.lua). There are a few other things scattered about as well. You aura extension actually works pretty well with the giant test campaign - I was worried that the other calls I overrode would have similar performance impacts without a workaround, but luckily that doesn't seem to be the case. Let me know if you'd like the giant test campaign (~130 tokens ready for a big battle).
Thanks again to SilentRuin for his contributions in this!