OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

sparsehash-2.0.4

memory-efficient hash_map and hash_set C++ classes

Back to search · Project homepage

Description

An extremely memory-efficient hash map implementation. 2 bits/entry overhead! The SparseHash library contains several hash map implementations, including implementations that optimize for space or speed. These hashtable implementations are similar in API to SGI's hash_map class and the tr1 unordered_map class, but with different performance characteristics. It's easy to replace hash_map or unordered_map by sparse_hash_map or dense_hash_map in C++ code. They also contain code to serialize and unserialize from disk.

Package information

Ports path
devel/sparsehash
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Used by (3 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON