3 ms·
Would you be willing to expand on that? I couldn't find any obvious well-known issues with a quick search.
by taneq 7y ago
Would you be willing to expand on that? I couldn't find any obvious well-known issues with a quick search.
- abhishekjha 7y agoApparently the standard imposes a set of requirements that the implementation must abide by thus making it a lot slower. [0] : https://www.reddit.com/r/programming/comments/5pwgtn/hash_map_benchmark_stdunordered_map_seems_very/ https://www.reddit.com/r/programming/comments/5pwgtn/hash_ma... [1] : https://stackoverflow.com/questions/42588264/why-is-stdunordered-map-slow-and-can-i-use-it-more-effectively-to-alleviate-t https://stackoverflow.com/questions/42588264/why-is-stdunord... [2] : https://www.youtube.com/watch?v=ncHmEUmJZf4 https://www.youtube.com/watch?v=ncHmEUmJZf4
- adrianN 7y agoThe interface forces an implementation as a map with linked-list buckets which is suboptimal for many use cases. So people who care about performance usually just implement their own hash map or use a library.
- taneq 7y agoAh, that makes sense. Thanks!