WoW:Lua object memory sizes: Difference between revisions

Line 74: Line 74:
And finally, a mix: The below code will use 20*2*500 + 4*2*500 + 32*500 = 40000 bytes
And finally, a mix: The below code will use 20*2*500 + 4*2*500 + 32*500 = 40000 bytes
<pre>
<pre>
  for t=1,'''500'''
  for t=1,500
   for i=1,2
   for i=1,2
     x = function() print(t) end
     x = function() print(t) end