Performance Engineering on Hard Mode with Andrew Hunter

Topics covered
Popular Clips
Episode Highlights
Optimization Modes
contrasts performance optimization in large-scale systems like Google with smaller, more intricate environments such as trading systems. At Google, even minor improvements can yield significant benefits due to the sheer scale, making it a "target-rich environment" where "money falls from the sky if you make something faster" 1. In contrast, optimizing trading systems requires a focus on latency and precise measurement of what happens during critical moments, making it a more complex challenge 2.
Optimization Leverage
The leverage of performance optimization varies significantly between large-scale and smaller systems. At Google, the vast scale allows for optimizations that can significantly reduce CPU usage, benefiting many users simultaneously 3. In smaller systems, understanding low-level operations, or "mechanical sympathy," becomes crucial. This concept, originating from race car driving, involves an intuitive grasp of how code interacts with hardware, enabling more effective optimizations 4.
Language and Sympathy
discusses the importance of language choice in performance engineering, particularly when using OCaml instead of more traditional languages like C or C++. While OCaml presents unique challenges, such as less efficient code generation, it also offers opportunities for impactful optimizations by focusing on system architecture and data flow 5. Mechanical sympathy plays a role here, as understanding the underlying system can lead to significant performance gains, even when working with a less conventional language 6.













