# vorner/arc-swap

Support atomic operations on Arc itself

Repository: https://github.com/vorner/arc-swap
Canonical: https://ross.abutalabs.com/products/arc-swap
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-06-28T17:54:52+00:00

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

## Adoption (not part of the score)
Stars 1408, forks 52 (observed 2026-08-28T04:04:38.586752+00:00)

## What it is
A Rust library providing atomic operations on Arc pointers, effectively an Atomic<Arc<T>>. It is optimized for read-mostly, write-seldom scenarios with consistent performance, similar to RwLock<Arc<T>> but lock-free for readers.

## Use cases
- atomically swap shared configuration at runtime
- read shared state without locking in Rust
- replace RwLock<Arc<T>> with faster read-mostly synchronization
- hot-reload immutable data structures concurrently
- share a pointer across threads with atomic updates

## When to choose
- you need lock-free reads of shared Arc data with occasional writes
- you want consistent, predictable performance for read-heavy workloads
- you need to atomically swap configuration or cached shared objects

## When to avoid
- you need frequent writes with complex in-place mutation
- you can simply use RwLock or Mutex without performance concerns
- you need atomics on non-Arc types

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools
- platform: rust, cross-platform
- tags: arc, atomic, lock-free, read-mostly, shared-state, algorithms

## Member repositories
- vorner/arc-swap (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.586752+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-30T04:38:36.847385+00:00, confidence not recorded.
  - readme: https://github.com/vorner/arc-swap (fetched 2026-08-28T04:04:38.586752+00:00, sha ac6a84fa980c)
  - registry_crates: https://crates.io/api/v1/crates/arc-swap (fetched 2026-08-29T11:52:06.242949+00:00, sha 18669e19c360)
- Data as of 2026-08-30T08:39:29.467469+00:00.
