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

Avoid creating small tables with a capacity of 1 #162

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Jun 17, 2020

Fixes #47

@Amanieu Amanieu merged commit 7c2cff2 into rust-lang:master Jun 17, 2020
@Amanieu Amanieu deleted the small-tables branch June 17, 2020 14:26
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 7, 2020
Update hashbrown to 0.8.1

This update includes:
- rust-lang/hashbrown#146, which improves the performance of `Clone` and implements `clone_from`.
- rust-lang/hashbrown#159, which reduces the size of `HashMap` by 8 bytes.
- rust-lang/hashbrown#162, which avoids creating small 1-element tables.

Fixes rust-lang#28481
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.

Amortize the cost of small tables
1 participant