This repository has been archived by the owner on Oct 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Use hash_hasher in hashmaps/sets where the key is a Cid/Multihash #258 #467
Merged
Conversation
This file contains 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
koivunej
approved these changes
Aug 2, 2021
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.
Looking good!
e6204ae
to
1e92392
Compare
Comparison using
|
This needs to have the bors d+ |
✌️ CHr15F0x can now approve this pull request. To approve and merge a pull request, simply reply with |
bors d- Could you add a CHANGELOG.md entry? |
Changelog is there, let's try with Mr b bors r+ |
Merge conflict. |
bors r+ |
bors bot
added a commit
that referenced
this pull request
Aug 4, 2021
467: Use hash_hasher in hashmaps/sets where the key is a Cid/Multihash #258 r=CHr15F0x a=CHr15F0x This PR implements a fix for #258, ie. using hash_hasher to improve performance in HashMaps/Sets what utilize Cid as key. hash_hasher provides approx. 40% increase in performance in this case. There are two things that still need to be done: - code is **not linted** yet, since this will be done in a separate PR by Mirko, - a simple benchmark is included for the sake of comparing HashedMap<Cid,> vs HashMap<Cid,>; Imho this bench should not be merged. Co-authored-by: Krzysztof Lis <[email protected]> Co-authored-by: CHr15F0x <[email protected]>
bors r- |
Canceled. |
@CHr15F0x could you avoid the merge commit, rebase on master instead? |
6bc3f31
to
f6677d0
Compare
bors r+ |
Build succeeded: |
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.
This PR implements a fix for #258, ie. using hash_hasher to improve performance in HashMaps/Sets what utilize Cid as key. hash_hasher provides approx. 40% increase in performance in this case.
There are two things that still need to be done: