Skip to content
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

crypto/sha3: pull in latest keccak from go crypto (45% speed increase) #1175

Merged
merged 1 commit into from Jun 3, 2015

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Jun 3, 2015

I've replaced our keccak implementation with the official Go version, which gained about 45% increase on the benchmarks on my Core2 laptop. To keep the code a bit cleaner, I've copied the official go keccac file (https://github.com/golang/crypto/blob/master/sha3/keccakf.go) as is into our own repo, and called that function directly from our sha3 instead of the previous d.keccak wrapper (i.e. to keep the keccak go file updatable to new versions if need be).

@karalabe
Copy link
Member Author

karalabe commented Jun 3, 2015

@obscuren @Gustav-Simonsson Please check this to make sure I didn't screw up something bad :D

@Gustav-Simonsson
Copy link

@karalabe Since all Ethereum system tests (BlockTests, TransactionTests) etc pass it should be fine. They contain a ton of different values and so unique hashes which are all verified for equality, so it's extremely unlikely this change broke something 👍

obscuren added a commit that referenced this pull request Jun 3, 2015
crypto/sha3: pull in latest keccak from go crypto (45% speed increase)
@obscuren obscuren merged commit 827bccb into ethereum:develop Jun 3, 2015
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants