Concurrent Core for Go

A lightweight, high-performance toolkit designed for critical paths where latency and allocation matter.

Get Started (GitHub) API Reference
go get github.com/llxisdsh/cc

Core Components

Engineered for extreme performance and reliability.

πŸš€

Map & FlatMap

State-of-the-art concurrent map implementations. Lock-free reads, fine-grained write locking, and cache-sensitive storage.

πŸ’ 

PLocal Storage

Processor-local storage (PLS) that shards data by GOMAXPROCS to eliminate lock contention in high-concurrency scenarios.

⚑

Execution Patterns

Orchestrate complex tasks with WorkerPool and OnceGroup for peak efficiency and safety.

πŸ”’

Advanced Primitives

Latch, Gate, Rally, Phaser, Epoch, and more. Atomic coordination tools built directly on runtime semaphores.

Synchronization Gallery

A rich set of primitives for every concurrency pattern.

Built for Performance

// 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)
    }
})

Speed That Matters

Benchmarks against standard library and popular packages.

Throughput 10x Growth
P999 Latency 95% Reduction
Memory usage 50% Efficiency

Deep Dive Center

Understand the soul of concurrent programming through vivid analogies and rigorous principles.