Part 20. Performance and Optimization
Performance is one of the main reasons people choose Zig.
| Section | Title |
|---|---|
| 1 | What Actually Makes Programs Slow? |
| 2 | Why Profiling Matters |
| 3 | The Basic Idea |
| 4 | Why SIMD Matters |
| 5 | Why Allocations Cost Time |
| 6 | Small Values Are Fine to Copy |
| 7 | Why Branch Prediction Exists |
| 8 | Benchmark the Right Thing |
| 9 | The Basic Idea |
| 10 | Case Study 1: Reusing a Temporary Buffer |