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

perf: switch to ska::flat_hash_map instead of std::unordered_map #30

Merged
merged 5 commits into from
May 25, 2022

Conversation

william-silversmith
Copy link
Contributor

Small ~10% improvement to connectomics.npy renumber, but ~45%
improvement to a random array.

https://github.com/skarupke/flat_hash_map/blob/master/flat_hash_map.hpp
https://probablydance.com/2017/02/26/i-wrote-the-fastest-hashtable/

I think abseil flat_hash_map is probably about the same or better, but ska::flat_hash_map is a single header file and requires vastly reduced compilation.

@william-silversmith william-silversmith self-assigned this May 25, 2022
@william-silversmith william-silversmith added the enhancement New feature or request label May 25, 2022
@william-silversmith william-silversmith merged commit c8a750b into master May 25, 2022
@william-silversmith william-silversmith deleted the wms_faster_map branch May 25, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant