-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Optimize XxHash3 on ARM platform #77881
Conversation
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsHey there, It is roughly 2.5x times faster than the previous version and 15% faster than the C++ version.
cc: @stephentoub, @EgorBo
|
Nice! 🙂
🚀 |
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Co-authored-by: Stephen Toub <[email protected]>
Thanks |
@@ -896,16 +897,31 @@ private static Vector128<ulong> Accumulate128(Vector128<ulong> accVec, byte* sou | |||
Vector128<uint> sourceKey = sourceVec ^ secret; | |||
|
|||
// TODO: Figure out how to unwind this shuffle and just use Vector128.Multiply |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment still relevant, or does it now refer to code in MultiplyWideningLower
?
Hey there,
This PR Fixes ARM performance for XxHash3, followup of #77756
It is roughly 2.5x times faster than the previous version and 15% faster than the C++ version.
cc: @stephentoub, @EgorBo