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
Integrate hashtree
for better hashing performance
#5188
Conversation
probably that's not available in the git repo, but this error triggers regardless on |
7faf769
to
9632fc7
Compare
5b5972a
to
060937d
Compare
84093c0
to
8d6b7d2
Compare
hashtree
for better hashing performance
@@ -136,6 +136,10 @@ jobs: | |||
fi | |||
fi | |||
|
|||
if [[ '${{ runner.os }}' == 'Windows' ]]; then | |||
export NIMFLAGS="${NIMFLAGS} --cc:clang" | |||
fi |
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.
Does this imply new build requisites for https://nimbus.guide/install.html#build-prerequisites ?
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.
not really, this is something our ci builds are set up to do explicitly..
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.
the problem before this line was that clang pretends to be gcc (via executable name) but isn't compatible enough
status-im/nim-ssz-serialization#35 brings in https://github.com/prysmaticlabs/hashtree as a supported backend for SHA256, giving a nice little performance boost to all
hash_tree_root
calls on supported platforms / compilers.Expected gains are on the order of 30% which in the case of a replayed state nets us 0.2-0.3s improvement.
More about this design here: https://hackmd.io/@potuz/BJyrx9DOF - kudos to @potuz for this excellent library!