String#<< is awfully slow on shared strings, time grows very quickly
--------------------------------------------------------------------

                 Key: JRUBY-2841
                 URL: http://jira.codehaus.org/browse/JRUBY-2841
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.3
         Environment: JRuby trunk (2008-07-20), OpenJDK 1.6.0-b09 server, 
running on Ubuntu 8.04 32-bit
            Reporter: Daniel Luz


time ruby -e 's = "hello"; 40_000.times{ s << s[0, 5] }'

real    0m0.089s
user    0m0.076s
sys     0m0.008s

time jruby -e 's = "hello"; 40_000.times{ s << s[0, 5] }'

real    0m11.788s
user    0m11.561s
sys     0m0.196s

MRI's time seems to grow slightly below linear; JRuby's time, on the other 
hand, increases pretty quickly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to