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

Philippe Marschall (JIRA) issues at jboss.org
Wed Oct 8 08:41:16 EDT 2014


     [ https://issues.jboss.org/browse/SECURITY-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philippe Marschall resolved SECURITY-787.
-----------------------------------------
    Fix Version/s: PicketBox_4_9_0.Beta1
       Resolution: Done


Pull Request merged

> Speed up SimpleRole#equals
> --------------------------
>
>                 Key: SECURITY-787
>                 URL: https://issues.jboss.org/browse/SECURITY-787
>             Project: PicketBox 
>          Issue Type: Patch
>          Components: JBossSX
>            Reporter: Philippe Marschall
>            Assignee: Stefan Guilhen
>             Fix For: PicketBox_4_9_0.Beta1
>
>
> 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 was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list