Skip to content

Conversation

@bluss
Copy link

@bluss bluss commented Aug 5, 2025

Since this u128 is already a good hash (from siphash13), use one part of it (lower u64 word) as the hash for the hashmap.

This is a draft, since it has not been benchmarked.

Since u128 is already a good hash, use one part of it (lower u64 word)
as the hash for the hashmap.
@bluss bluss force-pushed the passthrough-hasher branch from bb61c6b to a7c3961 Compare August 5, 2025 09:32
@bluss
Copy link
Author

bluss commented Aug 5, 2025

@laurmaedje said

unfortunately, it seems to barely make a difference (for Typst), just ~0.05% fewer instructions on average

so then with no supporting evidence for it, there is no gain from this change.

@bluss bluss closed this Aug 5, 2025
@bluss bluss reopened this Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant