String.toLowerCase/toUpperCase performance improvement

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b04
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: