lua-users home
lua-l archive

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

>>Is it true that after executing Lua scripts, being them plain source code
>>pre-compiled chunks, with lua_load and lua_pcall I call release the memory
>>used to hold them? I believe so, but I want to make sure I can do that.
>You mean, Lua scripts stored in memory? If so, you can release them right
>after you load them. The strings holding the scripts are not needed when
>chunks are executed.

Yes, that's what I meant. But not only strings (in the sense of Lua source
code), can pre-compiled scripts be freed after I lua_load and lua_pcall

Thank you,

Andre de Leiradella