-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Labels
Description
I tested my implementation for Java 9+ with VarHandles instead of Unsafe.
In my test case (hashing multiple files with a total size of ~ 1 GB) I noticed a huge speed improvement
- XxHash: Unsafe 1220 ms vs VarHandle 630 ms
- XxHash3: Unsafe 1280 ms vs VarHandle 720 ms
Is it possible to publish separate version for modern JDKs without dependency on Unsafe?
gzm55, albertocavalcante and leerhoplokhotnyuk