lua-users home
lua-l archive

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

> > Hopefully, things work out so that in a game you can wait to do a major
> > collection until you have the time to walk the entire heap

Why do you need to walk the entire heap?  Every variable is reference
why not just add it to a "collection list" when the reference count reaches
then just walk the collection list at gc time?  There would be issues with
fragmentation, but that could be handled at a different time, or not at all.