[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Boxed userdata and garbage collector
- From: "Juris Kalnins" <juris@...>
- Date: Mon, 06 Sep 2010 13:11:45 +0300
On Mon, 06 Sep 2010 12:22:40 +0300, Juris Kalnins <firstname.lastname@example.org> wrote:
collectgarbage( 'step', x ) will run step x times, but not
beyond the end of current cycle. If it was near the end, it will
do just a little, and enter pause.
Oh, and another thing. Unless you reach the end of cycle
(collectgarbage returns true), running collectgarbage( 'step', x )
will increase your debt by x kilobytes. So you have not tricked
GC to do any additional work, just made it do it a bit earlier.