A lightweight, high-performance toolkit designed for critical paths where latency and allocation matter.
go get github.com/llxisdsh/cc
Engineered for extreme performance and reliability.
State-of-the-art concurrent map implementations. Lock-free reads, fine-grained write locking, and cache-sensitive storage.
Processor-local storage (PLS) that shards data by GOMAXPROCS to eliminate lock contention in high-concurrency scenarios.
Orchestrate complex tasks with WorkerPool and OnceGroup for peak efficiency and safety.
Latch, Gate, Rally, Phaser, Epoch, and more. Atomic coordination tools built directly on runtime semaphores.
A rich set of primitives for every concurrency pattern.
// Efficient Concurrent Map Usage
var m cc.Map[string, int]
m.Store("key", 42)
// Atomic Read-Modify-Write
m.Compute("key", func(e *cc.MapEntry[string, int]) {
if e.Loaded() {
e.Update(e.Value() + 1)
}
})
Benchmarks against standard library and popular packages.
Understand the soul of concurrent programming through vivid analogies and rigorous principles.