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

Shaojin Wen duke at openjdk.org
Sat Jul 13 00:50:18 UTC 2024


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20168/files
  - new: https://git.openjdk.org/jdk/pull/20168/files/d15e4ed6..e2cbf4a0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20168&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20168&range=00-01

  Stats: 69 lines in 3 files changed: 26 ins; 24 del; 19 mod
  Patch: https://git.openjdk.org/jdk/pull/20168.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20168/head:pull/20168

PR: https://git.openjdk.org/jdk/pull/20168


More information about the core-libs-dev mailing list