RFR: 8342693: Use byte[] as parameter in a FDBigInteger constructor and as field
Andrey Turbanov
aturbanov at openjdk.org
Thu Nov 7 06:35:45 UTC 2024
On Mon, 21 Oct 2024 14:25:06 GMT, Raffaello Giulietti <rgiulietti 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];
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21614#discussion_r1832129129
More information about the core-libs-dev
mailing list