RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong [v4]

Shaojin Wen duke at openjdk.org
Tue Aug 27 22:37:19 UTC 2024


On Tue, 23 Jul 2024 02:48:56 GMT, Shaojin Wen <duke at openjdk.org> wrote:

>> Currently, about 25% of the time spent by the Integer.parseInt and Long.parseLong methods is spent on the Character.digit method.
>> 
>> The Character.digit method is common to all radixes. We can use a digit method optimized for Latin1 encoding radix 10 to improve the performance of Integer.parseInt and Long.parseLong methods.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add description for DECIMAL_DIGITS

@jddarcy  do I need to make more improvements to this PR? Thanks

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

PR Comment: https://git.openjdk.org/jdk/pull/20168#issuecomment-2313690417


More information about the core-libs-dev mailing list