Ruby continuations+GC - less is more

From: "=?windows-1251?Q?=D1=EB=E5=EF=ED=E5=E2_=C2=EB=E0=E4=E8=EC=E8=F0?=" <slepnev_v@...>
Date: 2004-05-31 18:11:57 UTC
List: ruby-core #2959
My previous example of memory-hogging was too complex, as it turns 
out, the same behaviour can be achieved with less =) Once again, 
replacing "end.call" with "end" makes memory stay bounded.

Just for the record, I'm using ruby 1.8.1 (2004-01-27) [i386-mswin32]

loop do
   callcc do |cc|
     cc.call proc {}
   end.call
end

Vladimir Slepnev

In This Thread

Prev Next