[MacRuby] #1019: String#gsub performance
MacRuby
ruby-noreply at macosforge.org
Mon Jan 3 14:16:25 PST 2011
#1019: String#gsub performance
----------------------------------+-----------------------------------------
Reporter: yasuimao@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone: MacRuby 1.0
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Comment(by lsansonetti@…):
I can't seem to reproduce that huge difference (0.1s -> 120/75s) here.
{{{
$ time ruby -e 'txt=File.read("GPL"); 1000.times { txt.gsub!(/\w+/,
"test") }'
real 0m2.320s
user 0m2.307s
sys 0m0.007s
$ time ./miniruby -e 'txt=File.read("GPL"); 1000.times { txt.gsub!(/\w+/,
"test") }'
real 0m6.319s
user 0m6.780s
sys 0m0.097s
}}}
Maybe the problem was fixed in r5081.
--
Ticket URL: <http://www.macruby.org/trac/ticket/1019#comment:4>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list