sparsehash/sparsehash
C++ associative containers observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4037
- days_rel: n/a
- days_push: 1738
- n_releases_24m: 0
Adoption not part of the score
1599 stars · 260 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A C++ library providing sparse_hash_map, dense_hash_map, and their set counterparts — hash-based associative containers with SGI hash_map-compatible APIs but different space/speed tradeoffs. sparse variants use only 1-2 bits of overhead per entry, while dense variants optimize lookup speed.
Use cases
- store huge hash maps with minimal memory overhead
- fast hash map lookups in C++
- replace std::unordered_map with a space-efficient alternative
- serialize hash maps to disk
- use hash sets with low per-entry overhead
When to choose
- memory footprint is critical for very large hash tables
- you need faster lookups than std::unordered_map and can tolerate API quirks like empty/deleted key reservation
- you want a mature, header-based C++ hashtable with I/O support
When to avoid
- you need a modern, actively maintained container — prefer absl::flat_hash_map or std::unordered_map
- your keys cannot reserve sentinel empty/deleted values
- you need rich iterator semantics or C++ standard compliance
Facets
library · maturity maintenance
caching serialization developer-tools performance developer-tools cpp windows cross-platform hash-map hash-set associative-containers hashtable memory-efficient header-only algorithms linux macos
1 source
- readme: https://github.com/sparsehash/sparsehash · fetched 2026-08-28 · 22c0869c6826
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sparsehash/sparsehash | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="sparsehash/sparsehash")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem