RFR: 8359424: Eliminate table lookup in Integer/Long toHexString [v4]
Shaojin Wen
swen at openjdk.org
Wed Dec 24 07:05:04 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.
Shaojin Wen has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 22 commits:
- Merge branch 'master' into optim_to_hex_202501
- Merge branch 'master' into optim_to_hex_202501
- Update src/java.base/share/classes/java/util/UUID.java
Co-authored-by: ExE Boss <3889017+ExE-Boss at users.noreply.github.com>
- 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
# Conflicts:
# src/java.base/share/classes/jdk/internal/util/HexDigits.java
- Merge remote-tracking branch 'upstream/master' into optim_to_hex_202501
- ... and 12 more: https://git.openjdk.org/jdk/compare/a59dbc51...bcb7d4be
-------------
Changes: https://git.openjdk.org/jdk/pull/22942/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22942&range=03
Stats: 262 lines in 6 files changed: 177 ins; 77 del; 8 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