[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua's GC
- From: paul@...
- Date: Tue, 11 Jun 2002 23:26:01 +0800
It has been quite a while since last time I posted about my
incremental GC patch to Lua 4.0. It isn't ready yet, and I'm
still having trouble ironing out the last bug, if somebody is
interested to help, I can send you the patch source.
As a side note, Doug Lea's dmalloc library seems to be pretty
handy. It is at least twice as efficient as the default one on
Win32 for my game.
On Tue, Jun 11, 2002 at 10:06:04AM -0400, J. Perkins wrote:
> RLake@oxfam.org.uk wrote:
> > This is true. Furthermore, free(3) is called on every piece of garbage. The
> > performance will be highly dependent on the implementation of free, but
> > it's unlikely to be very good, since free is generally not optimised for
> > garbage collection.
> FWIW, I got a good speedup by implementing my own pooling memory
> allocator. My implementation was rather naive, but it still cut
> my gc times in half, so this is a bottleneck worth investigating,
> no matter what gc algorithm Lua ends up using.