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 xxhash with ahash #51

Closed
wants to merge 1 commit into from
Closed

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Oct 26, 2023

ahash is much more widely used and claims to be a good bit faster.

ahash is much more widely used and claims to be a good bit faster.
@KillingSpark
Copy link
Owner

KillingSpark commented Oct 26, 2023

I'm sorry if I am just confused, but ahash is different from xxhash right? (Based on all the test files failing with wrong checksums I guess it is)

The xxhash algorithm is required by the zstd spec for the checksums, this wasn't my choice

@tamird
Copy link
Contributor Author

tamird commented Oct 26, 2023

Yeah, I see that now. I'm trying to move xxhash to a dev dependency, would you accept that change?

@tamird
Copy link
Contributor Author

tamird commented Oct 26, 2023

Oof, that is seeming pretty difficult given how much .reset() is going on.

Well, it'd be good to make xxhash a dev-dependency, but I guess I won't be doing that here.

@tamird tamird closed this Oct 26, 2023
@tamird tamird deleted the ahash branch October 26, 2023 21:44
@KillingSpark
Copy link
Owner

Sorry I should have clarified, xxhash is an integral part of the zsdt format. The checksums that are part of the frame definition are calculated that way. You need this if you want to make sure you decoded the correct data, which is probably what you want to do in many cases

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.

2 participants