Diagram of jemalloc's arena and thread cache interaction.

How jemalloc Balances Arenas Against Thread Caches

A deep dive into jemalloc’s arena‑vs‑thread‑cache design, its runtime balancing algorithm, and practical tuning tips for developers.

May 18, 2026 · 8 min · 1560 words · martinuke0
Diagram of a Union-Find forest before and after path compression.

How Path Compression Flattens the Union-Find Tree Structure

Path compression dramatically speeds up Union-Find operations by collapsing intermediate nodes during finds, turning deep trees into almost flat structures.

May 18, 2026 · 6 min · 1224 words · martinuke0
Diagram of distributed nodes syncing edits.

How CRDTs Reconcile Concurrent Edits Without a Central Server

An in‑depth look at the mathematics and engineering behind CRDTs that enable seamless, server‑less collaborative editing.

May 18, 2026 · 11 min · 2254 words · martinuke0
A stylized lock with a reader and a writer silhouette.

When Reader-Writer Locks Leave Your Writers Starving

Reader‑writer locks promise high concurrency for reads but can silently starve writers. This post explains why, how to spot it, and practical fixes.

May 18, 2026 · 7 min · 1406 words · martinuke0
A stylized diagram of a database query plan with mismatched arrows.

Why Query Planners Fail at Cardinality Estimation

A deep dive into the reasons query planners stumble on cardinality estimation, from outdated statistics to optimizer assumptions, and how to mitigate the impact.

May 18, 2026 · 6 min · 1263 words · martinuke0
Feedback