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

feat: ensure HashMap computes in the kernel #390

Closed
wants to merge 3 commits into from
Closed

Conversation

semorrison
Copy link
Collaborator

It seems a poor tradeoff to eke out a little more performance at the cost of losing the ability to compute with HashMap in the kernel.

@semorrison semorrison added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Nov 24, 2023

-- Verify that basic operations are computable in the kernel, and not blocked by
-- `System.Platform.numBits`.
example : (HashMap.empty.insert 0 0).isEmpty = false := rfl
Copy link
Member

Choose a reason for hiding this comment

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

Tests don't go in Std/

@digama0
Copy link
Member

digama0 commented Nov 25, 2023

Note, this PR may be rejected or modified pending discussion on Zulip.

@semorrison
Copy link
Collaborator Author

Yes, I agree this is a bad idea now. Thanks for the explanations, very helpful.

(Sadly, using RBMap in my application turned out to be even slower that just traversing lists...)

@semorrison semorrison closed this Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review This PR is ready for review; the author thinks it is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants