From: "Kroeger Simon (ext)" Date: 2005-08-24T23:47:38+09:00 Subject: Re: Very strange GC behaviour > [...] > One gotcha I've only seen after sending the other mail is, that moving > the variables to the outer loop won't buy you anything. While the GC > is disabled, this should eat infinite amounts of memory > > GC.disable > a = "empty-" > loop do a += "" end > GC.enable True, but -------------------- GC.disable a = "empty-" loop do a << '' end GC.enable -------------------- should not :) and -------------------- GC.disable a = "empty-" b = '' loop do a << b end GC.enable -------------------- does not. One has to be very carefull when disabling GC. (Don't know if anything of this helps...) cheers Simon