Skip to content

Fix HC collisions. #739

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

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Fix HC collisions. #739

merged 1 commit into from
Mar 7, 2025

Conversation

strub
Copy link
Member

@strub strub commented Mar 6, 2025

When hashing formulas, consider the type. This ensures consistency with formula equality checks and reduces collision rates, enhancing performance, especially with OCaml 5.

See ocaml/ocaml#13849 for more information.

@strub strub added the bug label Mar 6, 2025
@strub strub self-assigned this Mar 6, 2025
@strub strub requested review from alleystoughton and fdupress March 6, 2025 18:46
@strub strub linked an issue Mar 6, 2025 that may be closed by this pull request
@strub strub mentioned this pull request Mar 6, 2025
@strub strub force-pushed the fix-hc-collisions branch from af759b7 to b182577 Compare March 6, 2025 18:58
When hashing formulas, consider the type. This ensures consistency
with formula equality checks and reduces collision rates, enhancing
performance, especially with OCaml 5.
@strub strub force-pushed the fix-hc-collisions branch from b182577 to 17416be Compare March 6, 2025 19:41
Copy link
Member

@alleystoughton alleystoughton left a comment

Choose a reason for hiding this comment

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

The fixes the problem for me on my slowdown example. Also checked on my other developments. All good.

@strub
Copy link
Member Author

strub commented Mar 7, 2025

Note that this doe snot fix the memory blow-up issue.

@strub strub closed this Mar 7, 2025
@strub strub reopened this Mar 7, 2025
@strub strub merged commit 30cb08a into main Mar 7, 2025
18 checks passed
@strub strub deleted the fix-hc-collisions branch March 7, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EasyCrypt progressive slowdown involving simplification hints
2 participants