Skip to content

Use RawIntoIter instead of RawTable + RawIter #8

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

Closed
wants to merge 10 commits into from

Conversation

jonhoo
Copy link
Owner

@jonhoo jonhoo commented Jul 1, 2020

Depends on rust-lang/hashbrown#167.
Fixes #1.
Fixes #2.

jonhoo added 10 commits July 1, 2020 10:59
This fixes both #1 and #2 by taking advantage of
rust-lang/hashbrown#167.

It won't work until that PR is merged, and also requires an
implementation of `Clone` for `RawIntoIter`.
It turns out that with `i8` keys, it is decently likely that you will
_accidentally_ have your key be equal to a random byte of memory in
uninitialized memory. This was fixed in
rust-lang/hashbrown@6010db6
@jonhoo
Copy link
Owner Author

jonhoo commented Jul 3, 2020

Replaced by #12.

@jonhoo jonhoo closed this Jul 3, 2020
jonhoo added a commit that referenced this pull request Oct 19, 2024
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.

High overhead of calling IntoIterator shortly after resize Sub-optimal performance on remove during resize
1 participant