|
|
|
|
|
by aidenn0
2349 days ago
|
|
All this article has shown is that std::sort is much more optimal than std::unordered_map on the C++ standard library used. Every std::unordered_map I've used is surprisingly slow. Normally hash-tables are slow because it's so easy to write a slow hash-table, but std::unordered_map is slow for other reasons that I have had explained to me and then quickly forgot :(. I also find it strange that unordered_map is used rather than unordered_set. Not sure if it would make a performance difference, but if we are going for naive implementations, that should be at the top of the list. |
|