Optimize FloatingDecimal and DigitList with byte[] and cleanup

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b13

      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.

            Assignee:
            Shaojin Wen
            Reporter:
            Shaojin Wen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: