Quantcast WoWInterface - View Single Post - My favourite addon leaks memory
View Single Post
07-07-19, 03:15 PM   #11
jeruku
A Chromatic Dragonspawn
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 199
Originally Posted by Seerah View Post
Why don't you just post your /real/ code?
This is preferable as anyone can check it for any other errors or give some helpful advice.

Originally Posted by SDPhantom View Post
"Just run the GC more" is a poor excuse for not optimizing your code.
Agreed, I started out back when Blizzard didn't have events for nameplates and can tell you now that relying on garbage collection is still the most common misconception. Best practice is to reserve concatenation for creating unique table/frame names using a nested table/library for actual use; and as far as I know tables/frames are never deleted so recycle, reuse, and re-purpose.
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison
  Reply With Quote