View Single Post
11-23-15, 02:26 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,325
Relying on garbage collection is the last thing you should do in any circumstance. Memory expensive objects such as functions and tables can eat up a lot of memory if repeatedly created and left for garbage collection in a short amount of time. When garbage collection eventually does happen, it puts a heavy load on the CPU trying to free the associated memory of each object. Lua does do this in steps to try to keep the host program running stable, but it's still a CPU-intensive task nonetheless.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote