From: Ruben Date: 2004-10-14T16:23:32+09:00 Subject: Re: GC and low file performance when large array is allocated At Thu, 14 Oct 2004 16:13:22 +0900, Ruben wrote: > > My guess is that in the loop 100000.times{|i|t="t"}, the garbage > collector will run out of memory, maybe once, maybe even more. And > when it runs out of memory, it will have to mark/read/follow all cells > in "largeArray", and since that array is very large, i think that's > causing the slowdown. > > Try the following and you'll see it's faster: Sorry, disregard this. I somehow messed up the timings from some tests. Ruben