RFR: 8316662: Remove one allocation per conversion in Double.toString(double) and Float.toString(float) [v3]

Raffaello Giulietti rgiulietti at openjdk.org
Sat Feb 17 16:51:55 UTC 2024


On Fri, 27 Oct 2023 12:10:07 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> By correctly sizing an intermediate `byte[]` and making use of the internal `newStringNoRepl()` method, one allocation per conversion can be avoided when the runtime uses compact strings.
>
> Raffaello Giulietti has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
> 
>  - Merge branch 'master' into 8316662
>  - Uppercase JLA.
>  - 8316662: Remove one allocation per conversion in Double.toString(double) and Float.toString(float)

Reopen

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

PR Comment: https://git.openjdk.org/jdk/pull/15861#issuecomment-1950254176


More information about the core-libs-dev mailing list