[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: GC Optimisation question for Lua4
- From: David Jones <drj@...>
- Date: Thu, 17 Jun 2004 09:47:39 +0100
On Jun 16, 2004, at 19:04, Yann Com-Nougue wrote:
Absolutely the first thing to do, because it is usually fairly easy, is
to change your memory allocator.
Hi, I've been trying to find ways to optimize the time it takes to
do one mark and sweep cycle on my project, long post below...
The game I`m working on has a very high table/node count. I'm
talking around 10 000 hash tables and 120 000 Nodes. This takes a
relatively long time to traverse and causes the frame rate to drop
significantly when when doing a gc cylce ( it takes around 33ms to do
complete gc ).
I've been thinking about "quick and easy" solutions to improve this.
Zorn's little list is a reasonable place to start:
Some memory allocators can be 10 times slower than others. The sweep
phase of the GC is "free" intensive.
To be honest I doubt it will reduce your 33ms pause much, but it should
be fairly easy to try.