# cornelk/hashmap

A Golang lock-free thread-safe HashMap optimized for fastest read access.

Repository: https://github.com/cornelk/hashmap
Canonical: https://ross.abutalabs.com/products/hashmap
Language: Go
License: Apache-2.0
License Family: permissive
Topics: golang, lock-free, hashmap, go, map, fast, thread-safe
Last push: 2025-07-30T17:51:17+00:00

## Health v2 (maintenance only)
Score: 38/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 34, release rhythm 8, longevity 100
- inputs: {"age_days": 3683, "days_push": 399, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1877, forks 121 (observed 2026-08-28T04:05:47.820299+00:00)

## What it is
A Go library providing a lock-free, thread-safe HashMap optimized for fastest read access. It is not a general-purpose map and has slower write performance, making it best for read-heavy concurrent workloads.

## Use cases
- concurrent read-heavy key-value lookups in Go
- replace sync.Map for faster reads
- count concurrent events like URL requests with GetOrInsert
- share a map across goroutines without mutex locks
- cache lookups where reads vastly outnumber writes

## When to choose
- reads dominate writes and read speed is critical
- you need thread safety without mutex overhead
- numeric or string keys with simple value semantics

## When to avoid
- write-heavy workloads
- you need general-purpose map features like iteration ordering or deletion-heavy patterns
- simple single-threaded usage where a plain Go map suffices

## Facets
- artifact type: library
- maturity: active
- function: caching, concurrency
- domain: developer-tools, performance
- platform: go, cross-platform
- tags: hashmap, lock-free, thread-safe, concurrent-map, read-optimized

## Member repositories
- cornelk/hashmap (main) score 38

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:47.820299+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:14:42.069171+00:00, confidence not recorded.
  - readme: https://github.com/cornelk/hashmap (fetched 2026-08-28T04:05:47.820299+00:00, sha 2e2d9d501d2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
