[...]
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 memoryGC.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