[jboss-jira] [JBoss JIRA] (SECURITY-787) Speed up SimpleRole#equals

Philippe Marschall (JIRA) issues at jboss.org
Sun Jan 26 17:41:28 EST 2014


Philippe Marschall created SECURITY-787:
-------------------------------------------

             Summary: Speed up SimpleRole#equals
                 Key: SECURITY-787
                 URL: https://issues.jboss.org/browse/SECURITY-787
             Project: PicketBox 
          Issue Type: Patch
      Security Level: Public (Everyone can see)
          Components: JBossSX
            Reporter: Philippe Marschall
            Assignee: Stefan Guilhen


We did some profiling of our JBoss AS instance and {{SimpleRole#equals(Object)}} showed up as a hot method. A lot of time seems to be spent in `java.lang.Class.cast(Object)`. Switching to a normal Java cast should fix this since we're inside an instanceof and it always succeeds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list