But GC can't collect all the memory used by last lua file.
发件人： Hao Wu
发送时间： 2010-04-13 09:23:07
收件人： Lua list
主题： Re: Help ! A problem with the memroy
I guess gc would help if you only specify a certain step, say 2.
2010/4/12 bravefly <firstname.lastname@example.org>:
> Dear everybody:
> I use lua on an embeded device, the memory is only 400KB. My engine exec lua
> files one after one.
> And now , I do close & open lua_State to release the memory after every
> execution of a lua file. It's so slow.
> Is there a good idea about releasing the memory used by previous lua
> execution which don't need to close
> lua state ?