[MacRuby] #1019: String#gsub performance
MacRuby
ruby-noreply at macosforge.org
Wed Jan 5 07:34:19 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 yasuimao@…):
I also run this test with the same file encoded in UTF-8 but only with
ASCII characters (lossy conversion).
{{{
MacRuby 0.9 2011/01/05 nightly - 8092 words, UTF-8 encoded but only with
ASCII characters
Test 1 - 0.21 seconds
Test 2 - 0.57 seconds
}}}
This is slightly slower than force_encode, but much faster than the file
in UTF-8 with multi-byte characters.
--
Ticket URL: <http://www.macruby.org/trac/ticket/1019#comment:8>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list