⏱️ Latency: A Practical Guide in C++
Home Chapters Examples Lab Setup Diagrams Bibliography GitHub ↗
Home / Eliminating Work
Part 2 2 chapters

Eliminating Work

The cheapest latency fix is work you never do: precompute, lay out memory for the access pattern, and stop paying for copies.

Chapter 3

Eliminating work

The scan decode path rebuilt without the allocation, the map lookup, and the recomputed table it never needed: the first chapter with a large, clearly measured optimization effect.

25 minutesRead →
Chapter 4

Zero-copy data layout

The in-flight parcel ledger rebuilt from a ring of pointers to scattered heap records into one contiguous hot-field array, plus a false-sharing fix between two counters that share a cache line.

25 minutesRead →
← Previous part Measuring Latency Next part → Concurrency and Synchronization

Latency: A Practical Guide in C++

A chapter-based guide to latency engineering in C++23, one pattern per chapter, measured on a parcel sortation line.

Tutorial

  • Chapters
  • Examples
  • Diagrams
  • Bibliography

Reference

  • cppreference.com ↗
  • View on GitHub ↗
  • Issues ↗
Open source · Apache 2.0 (code) / CC BY 4.0 (docs) Last built 2026-11-30