Mechanical sympathy

The hardware under your abstractions: CPU caches, branch prediction, virtual memory, thread scaling, and why async is not parallelism.

Read in order: later instalments assume the earlier ones. 1 more instalment in the publish queue.

  1. 01 CPU Caches and Spatial Locality: Why an Array is 3x Faster Than a Linked List for the Exact Same Big-O Complexity
  2. 02 Branch Prediction: Why an if Inside a Hot Loop Costs Milliseconds
  3. 03 RSS vs VSZ in Virtual Memory: What the OOM Killer Actually Counts
  4. 04 Thread-per-Core Architecture: Why Extra Threads Eventually Destroy Throughput
  5. 05 Bloom Filters vs Counting Bloom Filters: When Deletions Kill Performance
  6. 06 Cuckoo Filters: Cache-Friendly Membership Checks With Deletions
  7. 07 Async does not mean parallel, and confusing them costs you a thread pool
  8. 08 The GIL is not why your Python is slow
  9. 09 Thread pool starvation from nested async calls
  10. 10 Immutability is a concurrency strategy, not a style preference
  11. 11 Your p99 is a garbage collector setting
  12. 12 Heap looks fine, pod still OOM killed
TTFB: -- ms LOAD: -- s PAYLOAD: -- kb