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

Optimise bucket placement. #11

Merged
merged 1 commit into from Aug 30, 2014
Merged

Optimise bucket placement. #11

merged 1 commit into from Aug 30, 2014

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Aug 30, 2014

Use a "generation vector" instead of a hashmap for storing the elements
of the bucket currently being placed. This gives a 2x speed-up
e.g. creating a phf_set out of my 99171-line /usr/share/dict/words took
1 second previously and now takes 0.4-0.5.

Use a "generation vector" instead of a hashmap for storing the elements
of the bucket currently being placed. This gives a 2x speed-up
e.g. creating a phf_set out of my 99171-line /usr/share/dict/words took
1 second previously and now takes 0.4-0.5.
sfackler added a commit that referenced this pull request Aug 30, 2014
Optimise bucket placement.
@sfackler sfackler merged commit 3687c0e into rust-phf:master Aug 30, 2014
@sfackler
Copy link
Collaborator

Thanks!

@huonw huonw deleted the speed++ branch October 31, 2014 13:02
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.

None yet

2 participants