# puzpuzpuz/xsync

Concurrent data structures for Go

Repository: https://github.com/puzpuzpuz/xsync
Canonical: https://ross.abutalabs.com/products/xsync
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-07-08T18:13:04+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 68, longevity 100
- inputs: {"age_days": 1916, "days_push": 56, "days_rel": 137, "gap_med": 38.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1719, forks 73 (observed 2026-08-28T04:05:26.659516+00:00)

## What it is
xsync is a Go library providing scalable concurrent data structures such as a concurrent hash table map, striped counter, and other synchronization primitives. It offers drop-in alternatives to the standard sync package with better performance under high contention.

## Use cases
- replace sync.Map with a faster concurrent map in Go
- implement high-contention counters in Go
- build caching layers with concurrent hash tables
- reduce lock contention in multicore Go services
- store and load key-value pairs concurrently without mutexes

## When to choose
- your Go application has heavy contention on sync.Map or atomic counters
- you need a performant concurrent map with generics support
- you want benchmarked, stress-tested concurrent primitives

## When to avoid
- your workload has low contention where standard sync primitives suffice
- you need data structures for languages other than Go
- you require minimal dependencies and cannot take on a library

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, caching, developer-tools
- domain: developer-tools, performance
- platform: go, cross-platform
- tags: concurrent-data-structures, concurrent-map, sync, high-performance, striped-counter, golang, algorithms

## Member repositories
- puzpuzpuz/xsync (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.659516+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:34:08.042697+00:00, confidence not recorded.
  - readme: https://github.com/puzpuzpuz/xsync (fetched 2026-08-28T04:05:26.659516+00:00, sha 78f82818130e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
