Thread: Something weird
View Single Post
04-26-10, 04:24 PM   #7
Goatus
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 18
Originally Posted by Sekrin View Post
Calling empty functions does use memory, about 20 bytes per call according to http://www.wowwiki.com/Lua_object_memory_sizes
Yes and no.
What i mean: I know that it theoretically uses memory but lua should menage it so it doesn't grow that rapidly. In same code i do
lua Code:
  1. chatTab:HookScript('OnEnter', function(self) newFrame.hover = true updateTabColors(newFrame) end)

Which fires every time i mouse over chat tab, and is definetly more complex that function() end right? But my addon memory doesn't even twitch while I'm hovering those tabs in/out like madman

But in just 15s with this flawed code from first post i can go well over 1 MiB in resource tools memory usage. So there is definitely something terribly wrong.

Edit:Thanks mrruben5!

Last edited by Goatus : 04-26-10 at 04:28 PM.
  Reply With Quote