16
submitted 5 months ago by deadcream@sopuli.xyz to c/cpp@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] lysdexic@programming.dev 2 points 5 months ago

std::unordered_map is one of the worst ones

It should be noted that the benchmark focused on the std::unordered_map implementation from GCC 13.2.0. I'm not sure if/how this conclusion can be extended to other implementations such as msvc or clang.

[-] deadcream@sopuli.xyz 4 points 5 months ago

Well the author claims that it's not possible for std::unordered_map to get close to other implementations because of constraints that the standard imposes on it. I.e. faster implementations simply behave slightly differently (in ways that are not important to most users).

this post was submitted on 30 May 2024
16 points (100.0% liked)

C++

1763 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS