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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • security-libs

      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.

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

              Created:
              Updated:
              Resolved: