From: Ryan Davis Date: 2009-03-01T14:34:15+09:00 Subject: Re: Array performance question On Feb 28, 2009, at 21:32 , Ryan Davis wrote: > > On Feb 27, 2009, at 05:16 , Jim Menard wrote: > >> Is there a known bug in Ruby array performance? I spent a lot of >> time >> yesterday boiling down the following example >> >> http://blogs.codehaus.org/people/geir/archives/001768_baffled_with_ruby.html > > I don't have time to dig into this, but I believe he's hitting a GC > threshold by going over N objects. Poke around gc.c and see what you can figure out. Also, look at the 1.9 version or through the changelog to find hints... #ifndef GC_MALLOC_LIMIT #if defined(MSDOS) || defined(__human68k__) #define GC_MALLOC_LIMIT 200000 #else #define GC_MALLOC_LIMIT 8000000 #endif #endif