8252827: Caching Integer.toString just like Integer.valueOf

Roger Riggs roger.riggs at oracle.com
Fri Apr 16 18:36:55 UTC 2021


Hi,

Is there any way to quantify the savings?
And what technique can be applied to limit the size of the cache.
The size of the small integer cache is somewhat arbitrary.

Regards, Roger

On 4/16/21 12:48 PM, Raffaello Giulietti wrote:
> Hello,
>
> does the enhancement proposed in [1] make sense, both today and when 
> wrappers will be migrated to primitive classes?
> If so, it should be rather simple to add it and I could prepare a PR.
> If not, the issue might perhaps be closed.
>
>
> Greetings
> Raffaello
>
> ----
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8252827



More information about the core-libs-dev mailing list