[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Incremental garbage collection coming to Lua soon?
- From: "Adam D. Moss" <adam@...>
- Date: Wed, 06 Aug 2003 20:27:19 +0100
> It would be nice to be able to specify an
amount of time that you could delegate to Lua for collection. Or,
perhaps some sort of volatile flag could be checked by Lua whilst GC'ing
so that you could interrupt it at will - e.g. on a timer or when you
exit an idle period - mmm which suggests multiple threads. Or, perhaps
there could be a call back to the client application periodically to
check whether GC should wind up.
Or the other way around, which wouldn't suggest threads; have
the client application call lua_bite_size_gc() repeatedly until
some time threshold is passed or something important comes up
in the app. That would need a 'very incremental' gc though. :)
Adam D. Moss . ,,^^ firstname.lastname@example.org http://www.foxbox.org/ co:3