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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: