RFR: 8365832: Optimize FloatingDecimal and DigitList with byte[] and cleanup [v7]
Raffaello Giulietti
rgiulietti at openjdk.org
Thu Aug 21 16:34:53 UTC 2025
On Thu, 21 Aug 2025 16:31:21 GMT, Shaojin Wen <swen at 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.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>
> BinaryToASCIIBuffer#getChars add javadoc
Marked as reviewed by rgiulietti (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/23311#pullrequestreview-3141443976
More information about the core-libs-dev
mailing list