RFR: 8365832: Optimize FloatingDecimal and DigitList with byte[] and cleanup [v4]
Raffaello Giulietti
rgiulietti at openjdk.org
Wed Aug 20 15:30:57 UTC 2025
On Wed, 20 Aug 2025 14:56:27 GMT, Johannes Graham <duke at openjdk.org> wrote:
>> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> bug fix
>
> src/java.base/share/classes/jdk/internal/math/FloatingDecimal.java line 1744:
>
>> 1742: }
>> 1743: byte[] buf = new byte[length];
>> 1744: for (int i = 0; i < length; i++) {
>
> `digits` can now be passed directly to `new ASCIIToBinaryBuffer` without copying it first.
> `digits` can now be passed directly to `new ASCIIToBinaryBuffer` directly without copying it first.
@wenshao Do you intend to simplify this, as suggested by @j3graham?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23311#discussion_r2288540871
More information about the core-libs-dev
mailing list