4 ms·
> but alas, for performance faster_map behaves a little differently and it must not be used as an STL container. Oops. No one sane expects that every single im
by jcelerier 5y ago
> but alas, for performance faster_map behaves a little differently and it must not be used as an STL container. Oops.
No one sane expects that every single implementation of an API must match the performance of its canonical implementation. Hell, I'm pretty sure that MS's STL in debug mode does not satisfy the STL performance requirements due to all the added checks, some being O(n) iirc.
- tialaramex 5y agoWho said it was merely a performance difference? I said it was a behaviour difference for performance. Both C++ concepts and templates have cat rules, "If it fits, I sits". Your insert() method has different semantics? I don't care, the function signature matched so I'm calling it anyway.