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

JEP 112: Charset Implementation Improvements

    XMLWordPrintable

Details

    • JEP
    • Resolution: Delivered
    • P4
    • 8
    • core-libs
    • None
    • Xueming Shen
    • Feature
    • Open
    • Implementation
    • core dash libs dash dev at openjdk dot java dot net
    • S
    • S
    • 112

    Description

      Summary

      Improve the maintainability and performance of the standard and extended charset implementations.

      Motivation

      • Decrease the size of installed charsets

      • Reduce maintenance cost by generating charset implementations at build time from simple text-based mapping tables

      • Improve the performance of encoding/decoding

      Description

      This is the second part of the sun.nio.cs/ext re-implementation project. In JDK 7 most of the charsets (80%+) were re-implemented to achieve better maintainability and performance. This JEP continues that work to:

      • Re-implement the remaining charsets, mainly the JIS_X_0208/0212 based Japanese charsets and couple of IBM double-byte charsets such as IBM964 and IBM33722.

      • Implement the sun.nio.cs.ArrayDecoder/Encoder API for the most frequently used double-byte charsets to enhance new String(byte[]) and String.getBytes() performance.

      • Improve the start-up/access performance of the standard and extended charsets providers.

      Testing

      Need to ensure that the new implementations are completely compatible (for each and every code point) with the existing implementation. Will write new automatic unit tests running under current test framework to guarantee correctness.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: