Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8146141

RFE: improve performance of sun.security.util.AlgorithmDecomposer

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      Suggested patch improves time of AlgorithmDecomposer.decompose by 30%.
      Two modifications were done:
      1. replace Pattern.split to String.split("/"). For simple 1-char patterns (non proper regexp) String.split is preferable, because of String.split is optimized for them.

      2. Hide large set of "SHA" checks under guard condition.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ascarpino Anthony Scarpino
              Reporter:
              skuksenko Sergey Kuksenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: