RFR: 8359424: Eliminate table lookup in Integer/Long toHexString [v8]

Shaojin Wen swen at openjdk.org
Fri Jan 23 03:44:38 UTC 2026


> In PR #22928, UUID introduced long-based vectorized hexadecimal to string conversion, which can also be used in Integer::toHexString and Long::toHexString to eliminate table lookups. The benefit of eliminating table lookups is that the performance is better when cache misses occur.

Shaojin Wen has updated the pull request incrementally with two additional commits since the last revision:

 - Update src/java.base/share/classes/java/lang/Long.java
   
   Co-authored-by: Chen Liang <liach at openjdk.org>
 - Update src/java.base/share/classes/java/lang/Long.java
   
   Co-authored-by: Chen Liang <liach at openjdk.org>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22942/files
  - new: https://git.openjdk.org/jdk/pull/22942/files/0c487d3e..53dd387f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22942&range=07
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22942&range=06-07

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/22942.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22942/head:pull/22942

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


More information about the core-libs-dev mailing list