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

Raffaello Giulietti rgiulietti at openjdk.org
Wed Aug 21 14:13:15 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)

Will continue on this in the more encompassing context of ongoing work in String concatenation.

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

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


More information about the core-libs-dev mailing list