Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-787

Speed up SimpleRole#equals

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Done
    • Icon: Major Major
    • PicketBox_4_9_0.Beta1
    • None
    • JBossSX
    • None

      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.

              sguilhen Stefan Guilhen
              pmarscha Philippe Marschall (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: