Library

unordered_dense v4.9.1

Versionv4.9.1
Stars★ 1,441
Released2026-08-10

A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion

Release notes

## 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 `segmented_set` slowed quadratically — 8 million string keys took ~22 s instead of ~2 s. The array grows geometrically again, the no-leak guarantee on a failed allocation is kept, and a regression test counts allocations so it stays that way. Thanks @kraldan! (#188)

**Full Changelog**: https://github.com/martinus/unordered_dense/compare/v4.9.0...v4.9.1

Share this resource


Discovered 2026-08-11 Source GitHub Archive 2026-08 →