[MacRuby] #616: MacRuby does not return control to terminal
#616: MacRuby does not return control to terminal -----------------------------+---------------------------------------------- Reporter: ufo@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: hang, freeze -----------------------------+---------------------------------------------- Executing this code {{{ n = 5000000 s = (0..n).to_a s[0] = s[1] = nil s.each do |p| next unless p break if p * p > n puts p (p*p).step(n, p) { |m| s[m] = nil } end s.compact }}} MacRuby 0.5 just hangs, uses up the CPU and does not return to the terminal. Further information here: http://pastie.org/private/y9yyfnqql3st7ankcrk48w -- Ticket URL: <http://www.macruby.org/trac/ticket/616> MacRuby <http://macruby.org/>
#616: MacRuby does not return control to terminal -----------------------------+---------------------------------------------- Reporter: ufo@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: hang, freeze | -----------------------------+---------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: Thanks for the report. After investigation Array#compact was the culprit. I improved the algorithm in r3570 and now the program returns quicker. It's even faster than the original 1.9 here. -- Ticket URL: <http://www.macruby.org/trac/ticket/616#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby