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

Laurent Bourgès lbourges at openjdk.org
Thu Oct 17 11:28:19 UTC 2024


On Tue, 30 Apr 2024 08:44:32 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 four additional commits since the last revision:
> 
>  - Merge branch 'master' into 8316662
>  - Merge branch 'master' into 8316662
>  - Uppercase JLA.
>  - 8316662: Remove one allocation per conversion in Double.toString(double) and Float.toString(float)

Looks promising

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

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


More information about the core-libs-dev mailing list