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

Change SipHash2-4 -> SipHash1-3 #780

Merged
merged 1 commit into from
Apr 19, 2023
Merged

Conversation

dccsillag
Copy link
Contributor

Inspired by rust-lang/rust#107925.

This seems to significantly improves performance.

This seems to significantly improves performance. Inspired by rust-lang/rust#107925
@mattfbacon
Copy link
Contributor

Have you considered ahash, xxhash, fxhash, etc?

@dccsillag
Copy link
Contributor Author

No, I haven't. I'm really just mimiciing rustc's decision on the matter.

I'm afraid I won't be able to test them out soon though (I'll be quite busy on the next days).

@laurmaedje
Copy link
Member

Have you considered ahash, xxhash, fxhash, etc?

At least fxhash doesn't have high-enough quality. We're relying on the fact that the collision probability for these 128-bit SipHashes is extremely low. If a collision happens, Typst might produce wrong results.

@laurmaedje laurmaedje merged commit d0afba9 into typst:main Apr 19, 2023
elteammate pushed a commit to rabotaem-incorporated/opinionated-typst that referenced this pull request Apr 19, 2023
This seems to significantly improves performance. Inspired by rust-lang/rust#107925
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