WoW:Memory usage: Difference between revisions

m
mNo edit summary
Line 30: Line 30:
= Local Variables =
= Local Variables =


Locally scoped variables in functions are stored on the stack, rather than being part of the garbage collected memory heap, however if the variable contains a reference type, then the actual data referenced is not on the stack.  
Locally scoped variables in functions are stored on the stack, rather than being part of the garbage collected memory heap, however if the variable contains a reference type, then the actual data referenced is not on the stack. (Though it's not actually a stack, per se, see the LUA source code for details)


__NOTOC__
__NOTOC__
Anonymous user