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 for comparing files #110

Merged
merged 2 commits into from
Nov 7, 2024
Merged

Conversation

Pi-Cla
Copy link
Contributor

@Pi-Cla Pi-Cla commented Nov 6, 2024

If we use hashing only to figure out if two files are the same then blake3 is very fast and preferred over sha2.
See: https://github.com/BLAKE3-team/BLAKE3

If we use hashing only to figure out if two files are the same then blake3 is very fast and prefered over sha2
https://github.com/BLAKE3-team/BLAKE3
@Pi-Cla
Copy link
Contributor Author

Pi-Cla commented Nov 6, 2024

Looking at the CI it seems blake3 has slightly sped it up:
Before: 269.46s
After: 265.45s
2nd After: 265.87s

So most of the time is being used in other parts of the program.

But still worth it especially when no one has shown a major attack against this hashing algorithm in the years since it was first published in 2021.

@uncomfyhalomacro and @Firstyear for thoughts

@Firstyear
Copy link
Collaborator

Seems fine to me :)

@uncomfyhalomacro
Copy link
Collaborator

wooops. i just updated and pushed and didn't see this PR

@uncomfyhalomacro uncomfyhalomacro merged commit d610799 into openSUSE-Rust:master Nov 7, 2024
2 checks passed
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.

3 participants