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

Use blake3 instead of blake2_simd #1140

Merged
merged 9 commits into from
Jan 20, 2020
Merged

Use blake3 instead of blake2_simd #1140

merged 9 commits into from
Jan 20, 2020

Conversation

syrusakbary
Copy link
Member

@syrusakbary syrusakbary commented Jan 13, 2020

Description

Blake3 has a much faster hashing rate than Blake2/Blake2b_simd. This PR updates wasmer to use it as the default hashing algorithm.

More info here: https://www.infoq.com/news/2020/01/blake3-fast-crypto-hash/

Review

  • Add a short description of the the change to the CHANGELOG.md file

@syrusakbary
Copy link
Member Author

bors try

bors bot added a commit that referenced this pull request Jan 13, 2020
lib/runtime-core/build.rs Outdated Show resolved Hide resolved
@bors
Copy link
Contributor

bors bot commented Jan 13, 2020

try

Build failed

  • wasmerio.wasmer

@syrusakbary
Copy link
Member Author

bors try

bors bot added a commit that referenced this pull request Jan 13, 2020
Copy link
Contributor

@Hywan Hywan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the fact it breaks all the caches (but it should be handled by the fact the Wasmer runtime version changes, so it de facto invalidates the caches), I think the code looks good!

@bors
Copy link
Contributor

bors bot commented Jan 13, 2020

try

Build succeeded

@syrusakbary
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Jan 14, 2020
1140: Use blake3 instead of blake2_simd r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

Blake3 has a much faster hashing rate than Blake2/Blake2b_simd. This PR updates wasmer to use it as the default hashing algorithm.

More info here: https://www.infoq.com/news/2020/01/blake3-fast-crypto-hash/

<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus <[email protected]>
Co-authored-by: Syrus Akbary <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jan 14, 2020

Build failed

  • wasmerio.wasmer

@syrusakbary
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Jan 20, 2020
1140: Use blake3 instead of blake2_simd r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

Blake3 has a much faster hashing rate than Blake2/Blake2b_simd. This PR updates wasmer to use it as the default hashing algorithm.

More info here: https://www.infoq.com/news/2020/01/blake3-fast-crypto-hash/

<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus <[email protected]>
Co-authored-by: Syrus Akbary <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jan 20, 2020

Build succeeded

@bors bors bot merged commit 0d2d436 into master Jan 20, 2020
@bors bors bot deleted the blake3 branch January 20, 2020 22:40
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.

4 participants