-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add t1ha to comparison #4
Comments
@leo-yuriev , do you know of an existing Java implementation of t1ha? |
@vlsi, no. |
Well, OpenJDK knows of Do you think it makes sense to use t1ha with multiplications being emulated? Is it something you call t1ha_32le ? |
So, I assume that JNI overhead still be less. |
There's Math.multiplyHigh(long, long) since Java9, however it is not yet optimized by JIT compiler. |
There are JNI impls in this comparison already, so it's legitimate. However it will lose competition on small input sizes, because JNI overhead is ~ 50 ns as far as I know. Small inputs are in practice the most important, except the case when a hash function is used as checksum function. |
Well, Critical JNI seems to be able to sum 16 bytes at 60'000 ops/ms that translates to 1'000'000/60'000 == 16.7ns/op: https://stackoverflow.com/a/36309652/1261287 |
Current t1ha headliner is t1ha1_le(), and it requires 64x64-to-128 unsigned multiplication. |
Yes, Critical Natives give a chanse for
|
Please pay attention to https://github.com/PositiveTechnologies/t1ha
Regards.
The text was updated successfully, but these errors were encountered: