-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pure
HashAndNibblize
function (#13453)
This PR extracts `HashAndNibblize` as a utility function, not dependent on `HexPatriciaTrieHashed` . Doing some benchmark comparisons this change doesn't impact performance (in fact it looks to make an improvement). These are the comparisons: - For 25 million keys: - (before) `hph.HashAndNibblizeKey`: 136.664s - (after) pure `HashAndNibblizeKey` : 108.215s - For 35 million keys: - (before) `hph.HashAndNibblizeKey`: 351.598s - (after) pure `HashAndNibblizeKey` : 326.218s - For 50 million keys: - (before) `hph.HashAndNibblizeKey`: 1055.217s - (after) pure `HashAndNibblizeKey` : 568.075s --------- Co-authored-by: antonis19 <antonis19@users.noreply.github.com> Co-authored-by: awskii <artem.tsskiy@gmail.com>
- Loading branch information
1 parent
19cb3b0
commit 5fcefc6
Showing
7 changed files
with
191 additions
and
219 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.