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

Optimize FloatingDecimal and DigitList with byte[] and cleanup

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • None
    • core-libs
    • None

      Since FloatToDecimal and DoubleToDecimal are used in Float.toString and Double.toString, some code in FloatingDecimal is not used.

      This PR refactors `FloatingDecimal` and `DigitList` to improve efficiency and reduce code duplication.

      Key changes:
      * Convert internal digit storage from `char[]` to `byte[]` for reduced memory footprint.
      * Remove unused code and methods that are no longer needed.

            swen Shaojin Wen
            swen Shaojin Wen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: