<i18n dev> RFR: 8300489: Use ArraysSupport.vectorizedHashCode in j.l.CharacterName
Claes Redestad
redestad at openjdk.org
Wed Jan 18 11:12:58 UTC 2023
This patch makes use of `ArraysSupport.vectorizedHashCode` and helps verify the performance win also for range-based hash calculations. Also modernized and cleaned up the surrounding code somewhat.
Benchmark Mode Cnt Score Error Units
Characters.CodePoints.codePointOf avgt 15 153.753 ± 6.119 ns/op
Characters.CodePoints.codePointOf avgt 15 134.753 ± 4.386 ns/op # after, 1.14x
For C1 and C2 on non-x86 platforms the performance is neutral. Interpreter sees a 1-2% regression due a few added calls.
-------------
Commit messages:
- 8300489: Use ArraysSupport.vectorizedHashCode in j.l.CharacterName
Changes: https://git.openjdk.org/jdk/pull/12068/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12068&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8300489
Stats: 30 lines in 2 files changed: 15 ins; 5 del; 10 mod
Patch: https://git.openjdk.org/jdk/pull/12068.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12068/head:pull/12068
PR: https://git.openjdk.org/jdk/pull/12068
More information about the i18n-dev
mailing list