lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>From: "Martin Dvorak" <mdvorak@ninell.cz>
>
>How can I estimate how much memory takes one Lua 4.0 state ?

In my Linux machine, sizeof(struct lua_State) is 120.
However, a state points to several dynamically allocated blocks, which are
hard to measure because they depend on the application.
--lhf