To Make Code Fast, All You Need Is… ☠️
summary
Practical techniques for making Go programs faster by helping the compiler and avoiding common runtime pitfalls. Covers compiler-friendly code patterns, classic low-level optimization tricks that still apply to Go, and runtime nuances developers should account for to decide when and how to optimize.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:08Why optimize code
- 2:11Compiler flags
- 5:42String optimizations
- 7:48Unsafe and performance
- 9:35Function result location
- 11:21Using sync.Pools
- 13:27Matrix optimization
- 16:18Working with maps in Go
- 18:45Pointers to bools
- 20:33Calendar shift copy
- 21:38Loop unrolling
- 26:57Why inlining matters
- 33:41Struct alignment
- 37:11Quick quiz
- 38:59FlatBuffers vs Protobufs
- 39:19Q&A
related talks
28mCode optimization tips and tricks
39mIs Go A Good Language to Build Compilers?
01h 37mAn Overview of Program Optimization Techniques
24mFunction Inlining
27mInception: Go programs that generate Go code
52mUnderstanding Compiler Optimization
55mCode Size Compiler Optimizations and Techniques for Embedded Systems
51mFrom assembler to C++: structure and optimization of CGo ☠️
