Mechanical sympathy is the practice of writing software that works with hardware rather than against it. Four core principles are covered: predictable sequential memory access (which leverages CPU prefetching), cache line awareness and false sharing (padding variables to avoid contention between threads), the single-writer

10m read timeFrom martinfowler.com
Post cover image
Table of contents
Not-So-Random Memory AccessCache Lines and False SharingThe Single Writer PrincipleNatural BatchingNatural vs. Smart Batching

Sort: