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

Shaojin Wen duke at openjdk.org
Tue Oct 24 15:21:39 UTC 2023


> 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 parseInt(String)/parseLong(String).

Shaojin Wen has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits:

 - merge from master
 - Merge remote-tracking branch 'upstream/master' into parse_int_long
   
   # Conflicts:
   #	src/java.base/share/classes/java/lang/Integer.java
   #	src/java.base/share/classes/java/lang/Long.java
 - fix from @schlosna 's review
 - Optimization for Integer.parseX & Long.parseX

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

Changes: https://git.openjdk.org/jdk/pull/16112/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16112&range=01
  Stats: 224 lines in 6 files changed: 170 ins; 24 del; 30 mod
  Patch: https://git.openjdk.org/jdk/pull/16112.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16112/head:pull/16112

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


More information about the core-libs-dev mailing list