Skip to content

Fix calling conventions for Set function replacements #5648

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 5 commits into from
Apr 9, 2025

Conversation

dolio
Copy link
Contributor

@dolio dolio commented Apr 8, 2025

This fixes some calling conventions from the recent PR replacing some base Set functions with optimized builtins.

The issue was that Set is a data type wrapper around Map, but the functions were acting as if it was just the Map directly. The fix is to add the Set declaration to the decls module and do some additional (un)wrapping in the foreign functions.

Performance is approximately the same on the benchmarks from the last PR.

dolio added 3 commits April 8, 2025 16:49
Just from adding `Set` data type to auto-defined decls.
@dolio
Copy link
Contributor Author

dolio commented Apr 8, 2025

Is there a good way to un-revert the changes this builds on top of?

@mitchellwrosen
Copy link
Member

@dolio You can revert the revert commit

@aryairani aryairani merged commit 6d0178a into trunk Apr 9, 2025
32 checks passed
@aryairani aryairani deleted the fix/set-replacement-conventions branch April 9, 2025 17:15
@aryairani
Copy link
Contributor

🎢

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.

4 participants