RFR: 8353741: Eliminate table lookup in UUID.toString [v4]
Shaojin Wen
swen at openjdk.org
Mon May 19 20:17:43 UTC 2025
> Improve the performance of UUID::toString by using Long.expand and SWAR (SIMD within a register) instead of table lookup. Eliminating the table lookup can also avoid the performance degradation problem when the cache misses.
Shaojin Wen has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 16 additional commits since the last revision:
- Merge remote-tracking branch 'upstream/master' into optim_uuid_to_string_202501
- simplify code
- Remove redundant comments
- use Long.expand
- Merge remote-tracking branch 'upstream/master' into optim_uuid_to_string_202501
- refactor
- from j3graham
- add comments
- use ByteArrayLittleEndian
- ues Long.expand
- ... and 6 more: https://git.openjdk.org/jdk/compare/6f6e5efd...878a3cb7
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/22928/files
- new: https://git.openjdk.org/jdk/pull/22928/files/55223571..878a3cb7
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=22928&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=22928&range=02-03
Stats: 353363 lines in 4033 files changed: 118357 ins; 216754 del; 18252 mod
Patch: https://git.openjdk.org/jdk/pull/22928.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22928/head:pull/22928
PR: https://git.openjdk.org/jdk/pull/22928
More information about the core-libs-dev
mailing list