RFR: 8359424: Eliminate table lookup in Integer/Long toHexString

Shaojin Wen swen at openjdk.org
Fri Jun 13 12:07:21 UTC 2025


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.

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

Commit messages:
 - Merge remote-tracking branch 'upstream/master' into optim_to_hex_202501
 - use right shift
 - use right shift
 - fix benchmark
 - Merge remote-tracking branch 'upstream/master' into optim_to_hex_202501
 - Merge remote-tracking branch 'upstream/master' into optim_to_hex_202501
 - Merge remote-tracking branch 'upstream/master' into optim_to_hex_202501
 - reverseBytes
 - reverseBytes
 - public hex8
 - ... and 9 more: https://git.openjdk.org/jdk/compare/e18277b4...6f491ced

Changes: https://git.openjdk.org/jdk/pull/22942/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22942&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8359424
  Stats: 262 lines in 6 files changed: 178 ins; 77 del; 7 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