>>>>> "A" == =?iso-8859-1?Q?Aleksi Niemel=E4?= <iso-8859-1> writes:

A> I don't know any real solution to this right now. GC is slow, so let's not
A> do it, OTOH without GCing now and then we run out of memory *fast*.

 Have you tried something like this :

   GC.disable
   24001.times do |i|
#
      if i%1000 == 0
         GC.enable
         GC.start
         GC.disable
      end
   end


Guy Decoux