<i18n dev> RFR: 8300489: Use ArraysSupport.vectorizedHashCode in j.l.CharacterName

Alan Bateman alanb at openjdk.org
Wed Jan 18 16:25:16 UTC 2023


On Wed, 18 Jan 2023 11:04:57 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> 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.

Marked as reviewed by alanb (Reviewer).

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

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


More information about the i18n-dev mailing list