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

Replace SipHash (2 levels) with CircleHash (1 level) #145

Merged
merged 2 commits into from
Sep 29, 2021

Conversation

fxamacker
Copy link
Member

This is faster and allows 3 levels (192-bits) of BLAKE3 using only 4 levels total.

This is faster and allows 3 levels (192-bits) of BLAKE3.
@fxamacker fxamacker self-assigned this Sep 29, 2021
Copy link
Member

@turbolent turbolent left a comment

Choose a reason for hiding this comment

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

🎉

Comment on lines +134 to +135
case 1, 2, 3:
if bd.blake3Hash == emptyBlake3Hash {
Copy link
Member

Choose a reason for hiding this comment

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

So the "fallback" is always Blake?

Copy link
Contributor

Choose a reason for hiding this comment

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

fallback is blake3 (which should prevent the hash flooding) and the final fallback is just a list of values sorted by insertion time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
3 participants