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

2024-07-22 Thread Joe Darcy
On Sat, 13 Jul 2024 00:50:18 GMT, Shaojin Wen 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 Lat

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

2024-07-12 Thread Shaojin Wen
On Sat, 13 Jul 2024 00:50:18 GMT, Shaojin Wen 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 Lat

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

2024-07-12 Thread Chen Liang
On Sat, 13 Jul 2024 00:50:18 GMT, Shaojin Wen 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 Lat

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

2024-07-12 Thread Shaojin Wen
On Sat, 13 Jul 2024 00:50:18 GMT, Shaojin Wen 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 Lat

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

2024-07-12 Thread Shaojin Wen
> 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 > Integ

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

2023-10-24 Thread Shaojin Wen
> By extracting the code that creates the exception, the CodeSize of these > methods is less than the default FreqInlineSize 325. and for the scenario > where the most commonly used radix is not specified and the String coder is > LATIN1, fast-path can improves the performance 10% of > parseIn