Skip to content

Part 20. Performance and Optimization

Performance is one of the main reasons people choose Zig.

SectionTitle
1What Actually Makes Programs Slow?
2Why Profiling Matters
3The Basic Idea
4Why SIMD Matters
5Why Allocations Cost Time
6Small Values Are Fine to Copy
7Why Branch Prediction Exists
8Benchmark the Right Thing
9The Basic Idea
10Case Study 1: Reusing a Temporary Buffer