RFR: 8342693: Use byte[] as parameter in a FDBigInteger constructor and as field

Raffaello Giulietti rgiulietti at openjdk.org
Thu Nov 14 10:54:52 UTC 2024


On Thu, 7 Nov 2024 06:32:42 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

>> This helps in reducing memory consumption, especially for long inputs.
>
> src/java.base/share/classes/jdk/internal/math/FloatingDecimal.java line 1875:
> 
>> 1873:             }  // look for and process decimal floating-point string
>> 1874: 
>> 1875:             byte[] digits = new byte[ len ];
> 
> Suggestion:
> 
>             byte[] digits = new byte[len];

@turbanoff I'll apply your suggestions later, in [PR 21840](https://github.com/openjdk/jdk/pull/21840)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21614#discussion_r1842008188


More information about the core-libs-dev mailing list