[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] Re: The Lua interpreter and large scripts
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 14 Nov 2009 18:51:58 -0200
> Are you doing a full/step GC on each allocation? Also is the GC only called
> during allocations where newsize > oldsize or on every call to 'l_alloc()'?
Only when newsize > oldsize (that is, "real" allocations). Lua assumes
that the allocator cannot fail when newsize <= oldsize, so the emergency
collector will never be called in those cases.
-- Roberto