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

String.toLowerCase/toUpperCase performance improvement

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b04
    • Verification:
      Verified

      Description

      The proposed change is to improve the speed and memory performance of String.toLowerCase/toUpperCase by

      (1) separate the "normal" use scenario (not supplementary character, no special case mappping handling) into a simple/quick loop iteration code path.

      (2) use the package private constructor String(char[], boolean) to avoid the char[] buffer copy in above fast-path.

        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            sherman Xueming Shen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: