RFR: 8349176: Speed up Integer/Long.toString via StringConcatHelper::newArray [v2]
Shaojin Wen
swen at openjdk.org
Sat Apr 5 01:22:52 UTC 2025
On Sat, 5 Apr 2025 01:19:39 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>> The byte[] allocated in Integer/Long.toString is fully filled, so we can use StringConcatHelper::newArray to create byte[] to improve performance.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>
> use StringConcatHelper.newArray
The performance of using StringConcatHelper::newArray is the same as using Unsafe.allocateUninitializedArray directly
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23353#issuecomment-2780111344
More information about the core-libs-dev
mailing list