<i18n dev> RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong [v2]

Joe Darcy darcy at openjdk.org
Tue Jul 23 02:26:31 UTC 2024


On Sat, 13 Jul 2024 00:50:18 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:
> 
>   Reduce changes

src/java.base/share/classes/java/lang/CharacterDataLatin1.java.template line 255:

> 253:     }
> 254: 
> 255:     @Stable

Please add a textual description of the semantics of this array.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20168#discussion_r1687337615


More information about the i18n-dev mailing list