Hacker News new | ask | show | jobs
by Const-me 2349 days ago
This.

For the OP’s use case, replacing std::unordered_set<T> with CAtlMap<T,bool> improves the hashtable method performance by a factor of ~4, consistent over different input sizes.