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

String.toLowerCase/toUpperCase performance improvement

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • core-libs
    • None
    • b04
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: