lua-users home
lua-l archive

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


> What I learned is that it is critical to route all 
> allocations for Lua through a custom heap made just for Lua.  

Ack.  I assume Lua is just calling the stdlib malloc/free liberally
then?  Is there a trivial way to let Lua manage its own heap by passing
in a predefined heap at initialization time?  This is particularly
important, I would imagine, for a game that has very long run-times and
can't suffer fragmentation.

Brian