Part 7
Performance
Making programs fast on the machines that exist, based on measurement rather than folklore.
-
7.1
What the compiler does for you
The optimizations you can rely on, seen in the generated assembly.
-
7.2
Measuring, not guessing
Benchmarks that tell the truth.
-
7.3
Cache and data layout
Why the same algorithm can be ten times faster with different data layout.
-
7.4
Zero-cost abstraction, examined
Which abstractions really are free, and which are not.
-
7.5
Copies, moves, and elision
Where copies actually happen, and how to stop paying for them.
-
7.6
Inlining, linking, and layout
How the build shapes the final program's speed.