attr assign as in array[1,2] = 3 is much slower than MRI
--------------------------------------------------------

                 Key: JRUBY-2177
                 URL: http://jira.codehaus.org/browse/JRUBY-2177
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
    Affects Versions: JRuby 1.1RC2
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1


This can definitely be improved:

{noformat}
JRuby:
                          user     system      total        real
control               0.115000   0.000000   0.115000 (  0.116000)
100 asgns             0.997000   0.000000   0.997000 (  0.997000)
100 array[1] asgns    0.692000   0.000000   0.692000 (  0.692000)
100 array[1,2] asgns 16.220000   0.000000  16.220000 ( 16.220000)
Ruby:
                          user     system      total        real
control               0.780000   0.000000   0.780000 (  0.781538)
100 asgns             1.710000   0.010000   1.720000 (  1.746280)
100 array[1] asgns    1.790000   0.000000   1.790000 (  1.789719)
100 array[1,2] asgns  8.230000   0.010000   8.240000 (  8.270255)
{noformat}

-- 
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