Aleksi Niemel<aleksi.niemela / cinnober.com> writes:

> > If you disable garbage collection, then the times become linear.
> 
> But I can't do that, as my more complex real program creates masses of
> objects which means that after 30 secs and 300MB of memory we'll have only a
> core file :).

But what you might try is to disable GC for each group of (say) 1000
objects, then enable it, run it, and the disable it again. My guess is 
that would make your times almost linear.

Dave