Chuck Remes created JRUBY-6276:
----------------------------------

             Summary: Fixnum#== is gets very slow as a boolean OR expression 
gets longer
                 Key: JRUBY-6276
                 URL: https://jira.codehaus.org/browse/JRUBY-6276
             Project: JRuby
          Issue Type: Bug
          Components: Performance
    Affects Versions: JRuby 1.6.5
         Environment: Mac OSX 10.6.x
            Reporter: Chuck Remes
            Priority: Minor
         Attachments: equals_bench.rb, out

I wrote a short benchmark to see if the order of variables and Constants 
mattered when doing a comparison. It showed that JRuby gets quite slow as a 
boolean OR expression gets longer which indicates the #== could use a little 
help. The benchmark and results are enclosed. I compared it to RBX which, while 
quite a bit slower, doesn't show the *steep* performance drop-off as the 
expression gets longer like JRuby does.

Yes, I'm looking for perfection. :)

After all, this is merely comparing a few integers for cryin' out loud. This 
should be near native speed (in my dreams).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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