On 2009-12-04, at 20:09, Aaron Bohannon wrote:
> So in a 15 second run (with no
> idle time, as I said), it now does about 130 heap compactions instead
> of 3 and gets better total performance because of it, utterly defying
> my GC intuition.
What is the size of your heap? Have you tried compacting only once
every 2, 3, 5, or 10 loops?
One possible explanation is that compaction will also compact the
free list into a few large blocks, which makes allocation faster.
-- Damien