Re: Boxed userdata and garbage collector
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Boxed userdata and garbage collector
- From: "Juris Kalnins" <juris@...>
- Date: 2010年9月06日 13:11:45 +0300
On 2010年9月06日 12:22:40 +0300, Juris Kalnins <juris@mt.lv> 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.