Skip to content
⌘K

unordered_dense

A fast & densely stored hashmap and hashset.

health 70contrib 651.5k

Overview & architecture

C++ standard
C++17
Build systems
–
License
MIT
Languages
C++
Last release
v5.3.3 · Oct 22, 2026

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
1.5k▲ 29
Merged PRs (30d)
latest
3▲ 3
Contributors (90d)
latest
6▲ 3
Issue first response p50
–
No snapshots yet.
2 open issues0 open PRs6 commits (30d)

Recent notable activity

  • Release
    unordered_dense v5.3.3

    A bug fix release for older compilers. Same hash values and same iteration order as 5.3.2. unordered_dense.h used __has_cpp_attribute(likely) without checking first that __has_cpp_attribute exists. MSVC 19.16 (Visual Studio 2017) does not have it, so it warned with C4067, which is an error with /WX. The check is now…

    Martin Leitner-Ankerlv5.3.3
  • Release
    unordered_dense v5.3.2

    A build system release: unordered_dense can now be used as a Meson subproject. The header is unchanged apart from the version, same hash values and same iteration order as 5.3.1. meson.build declares unordered_dense_dep and registers it with meson.override_dependency(), so a project that has unordered_dense in its…

    Martin Leitner-Ankerlv5.3.2
  • Release
    unordered_dense v5.3.1

    A bug fix release for map_view and set_view, which came with 5.3.0. Some of their read functions did not compile: visit(), cbegin(), cend() and locate(). Owning maps are unchanged, same hash values and same iteration order as 5.3.0. visit() on a view stored a const element in a non-const pointer. A view now passes…

    Martin Leitner-Ankerlv5.3.1
  • Release
    unordered_dense v5.3.0

    A map can now be saved and loaded back without hashing a single key, or used in place straight from a file. Also, the insert has one shape for every compiler now, which removes the 3-3.7x slowdowns 5.2.0 had in some callers' loops, and costs 2.4% (clang) and 5.2% (gcc) on the benchmark suite's score. Same hash values…

    Martin Leitner-Ankerlv5.3.0
  • Release
    unordered_dense v5.2.0

    Two changes since 5.1.0, both to the insert path: try_emplace and operator[] no longer pay for the placement on a key that is already there (#322), and insert() and emplace() look the key up before they construct anything (#323). That is the first time a set gets any of this, since a set has no try_emplace. operator[]…

    Martin Leitner-Ankerlv5.2.0
  • Release
    unordered_dense v5.1.0

    Three changes since 5.0.1: index_bytes() is new, segmented_map tears itself down in the opposite order, and segmented_map works with fancy pointers. index_bytes() In 4.x a bucket was one slot, so bucket_count() * sizeof(bucket_type) was exactly the memory of the index. In 5.0 a bucket is a group of sixteen slots, and…

    Martin Leitner-Ankerlv5.1.0
  • Release
    unordered_dense v5.0.1

    slots is a macro in Qt, so 5.0.0 did not compile in any translation unit that has seen a Qt header. qobjectdefs.h defines it empty unless you set QT_NO_KEYWORDS, and detail::group_storage had a private member with that name. Thanks to @dkprice for the report in #289. That member is now slots_per_group, which is what…

    Martin Leitner-Ankerlv5.0.1
  • Release
    unordered_dense v5.0.0

    The robin hood index is gone. In its place is a group index: sixteen fingerprints compared in one SSE2 instruction, and eight overflow counters per group that an erase decrements again, so nothing is ever left behind and no rehash is needed to repair the table. On uint64_t keys that is 1.5x on a lookup and up to 2.3x…

    Martin Leitner-Ankerlv5.0.0
  • Release
    unordered_dense v4.11.0

    Insert and erase get the treatment lookups got in 4.10.0: one SSE2 decision instead of one branch per bucket. What changed place_and_shift_up and erase_and_shift_down settle four buckets from one mask. The robin hood shift used to ask "is this bucket occupied" once per bucket, and that question is a coin flip -- 73%…

    Martin Leitner-Ankerlv4.11.0
  • Release
    unordered_dense v4.10.0

    Faster lookups The probe reads four buckets at once. It used to look at one bucket at a time, so *where* a key turned up leaked into the branch pattern: hit at home, hit one further along, proven absent at the third. On lookups whose outcome is genuinely random that cost 1.35 branch mispredictions each. The probe now…

    Martin Leitner-Ankerlv4.10.0
  • Release
    unordered_dense v4.9.2

    Fixes A size at the limit produced an unusable table. Two independent faults, both at max_size(), both found by asking whether a test would notice a bug rather than whether it ran the line: calc_shifts_for_size() walked the shift down past the point where the bucket array can still grow. calc_num_buckets() saturates…

    Martin Leitner-Ankerlv4.9.2
  • Release
    unordered_dense v4.9.1

    Fixes Quadratic insert cost in the segmented containers. v4.9.0's exception-safety work grew segmented_vector's block pointer array with reserve(size + 1), which std::vector takes literally: every new segment reallocated the array and copied every pointer before it, so a plain insert loop into a segmented_map or…

    Martin Leitner-Ankerlv4.9.1

Stories

ReleaseFor you

unordered_dense v5.3.3 released

A bug fix release for older compilers. Same hash values and same iteration order as 5.3.2. unordered_dense.h used __has_cpp_attribute(likely) without checking first that __has_cpp_attribute exists. MSVC 19.16 (Visual Studio 2017) does not have it, so it warned with C4067, which is an error with…

Why it matters: unordered_dense is in Core Libraries (one of your focus areas).

ReleaseFor you

unordered_dense v5.3.2 released

A build system release: unordered_dense can now be used as a Meson subproject. The header is unchanged apart from the version, same hash values and same iteration order as 5.3.1. meson.build declares unordered_dense_dep and registers it with meson.override_dependency(), so a project that has…

Why it matters: unordered_dense is in Core Libraries (one of your focus areas).

ReleaseFor you

unordered_dense v5.3.1 released

A bug fix release for map_view and set_view, which came with 5.3.0. Some of their read functions did not compile: visit(), cbegin(), cend() and locate(). Owning maps are unchanged, same hash values and same iteration order as 5.3.0. visit() on a view stored a const element in a non-const pointer…

Why it matters: unordered_dense is in Core Libraries (one of your focus areas).

ReleaseFor you

unordered_dense v5.3.0 released

A map can now be saved and loaded back without hashing a single key, or used in place straight from a file. Also, the insert has one shape for every compiler now, which removes the 3-3.7x slowdowns 5.2.0 had in some callers' loops, and costs 2.4% (clang) and 5.2% (gcc) on the benchmark suite's…

Why it matters: unordered_dense is in Core Libraries (one of your focus areas).

ReleaseFor you

unordered_dense v5.2.0 released

Two changes since 5.1.0, both to the insert path: try_emplace and operator[] no longer pay for the placement on a key that is already there (#322), and insert() and emplace() look the key up before they construct anything (#323). That is the first time a set gets any of this, since a set has no…

Why it matters: unordered_dense is in Core Libraries (one of your focus areas).

ReleaseFor you

unordered_dense v5.1.0 released

Three changes since 5.0.1: index_bytes() is new, segmented_map tears itself down in the opposite order, and segmented_map works with fancy pointers. index_bytes() In 4.x a bucket was one slot, so bucket_count() * sizeof(bucket_type) was exactly the memory of the index. In 5.0 a bucket is a group…

Why it matters: unordered_dense is in Core Libraries (one of your focus areas).

Maintainers & organizations

every claim links to its source

Maintainers

Top contributors

Releases & changelog

  • unordered_dense v5.3.3

    A bug fix release for older compilers. Same hash values and same iteration order as 5.3.2. unordered_dense.h used __has_cpp_attribute(likely) without checking first that __has_cpp_attribute exists. MSVC 19.16 (Visual Studio 2017) does not have it, so it warned with C4067, which is an error with /WX. The check is now…

  • unordered_dense v5.3.2

    A build system release: unordered_dense can now be used as a Meson subproject. The header is unchanged apart from the version, same hash values and same iteration order as 5.3.1. meson.build declares unordered_dense_dep and registers it with meson.override_dependency(), so a project that has unordered_dense in its…

  • unordered_dense v5.3.1

    A bug fix release for map_view and set_view, which came with 5.3.0. Some of their read functions did not compile: visit(), cbegin(), cend() and locate(). Owning maps are unchanged, same hash values and same iteration order as 5.3.0. visit() on a view stored a const element in a non-const pointer. A view now passes…

  • unordered_dense v5.3.0major

    A map can now be saved and loaded back without hashing a single key, or used in place straight from a file. Also, the insert has one shape for every compiler now, which removes the 3-3.7x slowdowns 5.2.0 had in some callers' loops, and costs 2.4% (clang) and 5.2% (gcc) on the benchmark suite's score. Same hash values…

  • unordered_dense v5.2.0major

    Two changes since 5.1.0, both to the insert path: try_emplace and operator[] no longer pay for the placement on a key that is already there (#322), and insert() and emplace() look the key up before they construct anything (#323). That is the first time a set gets any of this, since a set has no try_emplace. operator[]…

  • unordered_dense v5.1.0major

    Three changes since 5.0.1: index_bytes() is new, segmented_map tears itself down in the opposite order, and segmented_map works with fancy pointers. index_bytes() In 4.x a bucket was one slot, so bucket_count() * sizeof(bucket_type) was exactly the memory of the index. In 5.0 a bucket is a group of sixteen slots, and…

  • unordered_dense v5.0.1

    slots is a macro in Qt, so 5.0.0 did not compile in any translation unit that has seen a Qt header. qobjectdefs.h defines it empty unless you set QT_NO_KEYWORDS, and detail::group_storage had a private member with that name. Thanks to @dkprice for the report in #289. That member is now slots_per_group, which is what…

  • unordered_dense v5.0.0major

    The robin hood index is gone. In its place is a group index: sixteen fingerprints compared in one SSE2 instruction, and eight overflow counters per group that an erase decrements again, so nothing is ever left behind and no rehash is needed to repair the table. On uint64_t keys that is 1.5x on a lookup and up to 2.3x…

  • unordered_dense v4.11.0major

    Insert and erase get the treatment lookups got in 4.10.0: one SSE2 decision instead of one branch per bucket. What changed place_and_shift_up and erase_and_shift_down settle four buckets from one mask. The robin hood shift used to ask "is this bucket occupied" once per bucket, and that question is a coin flip -- 73%…

  • unordered_dense v4.10.0major

    Faster lookups The probe reads four buckets at once. It used to look at one bucket at a time, so *where* a key turned up leaked into the branch pattern: hit at home, hit one further along, proven absent at the third. On lookups whose outcome is genuinely random that cost 1.35 branch mispredictions each. The probe now…

  • unordered_dense v4.9.2

    Fixes A size at the limit produced an unusable table. Two independent faults, both at max_size(), both found by asking whether a test would notice a bug rather than whether it ran the line: calc_shifts_for_size() walked the shift down past the point where the bucket array can still grow. calc_num_buckets() saturates…

  • unordered_dense v4.9.1

    Fixes Quadratic insert cost in the segmented containers. v4.9.0's exception-safety work grew segmented_vector's block pointer array with reserve(size + 1), which std::vector takes literally: every new segment reallocated the array and copied every pointer before it, so a plain insert loop into a segmented_map or…

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement. Contribution scanning is off for this project.

Why this score

Health 70Contribution friendliness 65computed 20h ago
  • Activity0.46
    3 merged PRs in 30 days (full marks at 20); 6 commits in 30 days (full marks at 60) [health score: no data for backlog pressure; weights renormalized]health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs site [contrib score: no data for entry points; weights renormalized]contrib
  • Maintainer responsiveness1.00
    median PR merge time 0 h (full marks within 72 h, zero after 60 days) [health score: no data for backlog pressure; weights renormalized] [contrib score: no data for entry points; weights renormalized]healthcontrib
  • Release cadence1.00
    last release 31 days ago (full marks within 90, zero after 730); 12 releases in 365 days (full marks at 4) [health score: no data for backlog pressure; weights renormalized]health
  • Contributor breadth0.45
    6 unique contributors in 90 days (full marks at 25); top contributor has 86% of commits; stars count for at most 5% of this signal [health score: no data for backlog pressure; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.