On Sat, 25 Jan 2025 13:04:52 GMT, Shaojin Wen <s...@openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: dba0d545
Author:    Shaojin Wen <s...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/dba0d545053fb73e57ea6fda829a5bf3d0135ac5
Stats:     222 lines in 2 files changed: 22 ins; 135 del; 65 mod

8365832: Optimize FloatingDecimal and DigitList with byte[] and cleanup

Reviewed-by: rgiulietti, liach

-------------

PR: https://git.openjdk.org/jdk/pull/23311

Reply via email to