Optimize XxHash3 on ARM platform#77881
Merged
stephentoub merged 3 commits intodotnet:mainfrom Nov 5, 2022
Merged
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
|
Member
|
Nice! 🙂
🚀 |
EgorBo
reviewed
Nov 4, 2022
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
EgorBo
reviewed
Nov 4, 2022
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
EgorBo
reviewed
Nov 4, 2022
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
stephentoub
reviewed
Nov 4, 2022
src/libraries/System.IO.Hashing/src/System/IO/Hashing/XxHash3.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Merged
Member
|
Thanks |
xtqqczze
reviewed
Nov 5, 2022
| @@ -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 | |||
Contributor
There was a problem hiding this comment.
Is this comment still relevant, or does it now refer to code in MultiplyWideningLower?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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