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

Stop and prevent discarding hash_into values #4848

Merged
merged 3 commits into from
Jan 14, 2025
Merged

Conversation

widlarizer
Copy link
Collaborator

Previously at some point when finishing #4524 I accidentally discarded the hashing result in the hash_obj_ops implementation. I'm fixing that here and marking all hash_into and hash_top methods [[nodiscard]]. Prior to this PR, any non-trivial design would run opt_clean for excessive amounts of time since all Cell* and Wire* hashes would collide. To test the impact, you can compare the perf of the PR head against the root commit of this PR branch (6225abe) and the main commit prior to the hashlib PR merge (7a362f1).

Once again, reviewers are automatically set to code owners and I can't remove those, sorry for the spam.

@povik povik merged commit 85c4254 into main Jan 14, 2025
44 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.

2 participants