Which standard C++ library elements should I avoid?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/cpp

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • SaaSHub - Software Alternatives and Reviews
  • robin-hood-hashing

    Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20

    Time complexity analysis doesn't necessarily reflect empirical performance. On this benchmark, std::map is twice as slow as clang's std::unordered_map on my laptop and unordered_map is seven times as slow as robin_hood, a single-header library. std::unordered_map is weirdly slow.

  • HashTable

    simple hash table implementation

    Then decided to build the simplest hashmap I could think of and test it against unordered_map https://github.com/brwhale/HashTable

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • LMRTFY

    Let Me Run That For You: A C++20 Thread Pool Library

    I am actually in the process of updating it to C++20 (here if you're curious), I'm going to consider it. I would like to not exclude clang users though, if at all possible. It wouldn't save me much code switching to jthread for the potential loss of users.

  • C++ Format

    A modern formatting library

    For output, fmtlib (partially included in C++20 too)

  • udb2

    For details, see the blog post:

    Time complexity analysis doesn't necessarily reflect empirical performance. On this benchmark, std::map is twice as slow as clang's std::unordered_map on my laptop and unordered_map is seven times as slow as robin_hood, a single-header library. std::unordered_map is weirdly slow.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts