[mono] dn_simdhash_ght_compatible optimizations for ARM64#113241
Closed
kg wants to merge 4 commits intodotnet:mainfrom
Closed
[mono] dn_simdhash_ght_compatible optimizations for ARM64#113241kg wants to merge 4 commits intodotnet:mainfrom
kg wants to merge 4 commits intodotnet:mainfrom
Conversation
…ms like sometimes they don't get inlined Add some measurements for simdhash ght Improve makefile Introduce scan data that's fetched once per bucket
273d648 to
934cdcc
Compare
This was referenced Mar 7, 2025
Member
Author
|
Superceded by #113274 |
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.
Depends on #113095.
The current version of dn_simdhash_ght_compatible has especially bad performance on arm64 vs x64, so I took some steps to redesign it and address some codegen deficiencies. This has the added benefit of making it a bit faster on x64 as well.
There weren't benchmarks for ght_compatible in the benchmark suite originally, so I added a couple. (I was benchmarking end-to-end originally, which makes it harder to compare across platforms.)
The other variants of simdhash should be unaffected, this was mostly a design defect in the ghashtable compatibility variant.
For the find_random_keys benchmark:
Improved from 109.7% to 76.84% on x64.
Improved from 121.17% to 82.22% on ARM64.
Before (x64):
After (x64):
Before (arm64):
After (arm64):