3 ms·
But we are talking about a standard hash table here. I.e., one that should have consistent performance for general problems, and no surprising behavior whatsoev
by amelius 10y ago
But we are talking about a standard hash table here. I.e., one that should have consistent performance for general problems, and no surprising behavior whatsoever.
Imho, if the user wants better performance for special use cases, then they can search for better algorithms.
- lorenzhs 10y agoDespite the downvotes, I think you're absolutely right. "No surprises, okay performance" is what a standard library data structure or algorithm should strive for. Sometimes that works out really well for both criteria (libstdc++'s std::sort), but other times performance suffers as "no surprises" is more important (std::unordered_map).