Compiler Optimizations
Official Go wiki page describing compiler optimizations including escape analysis and inlining.
Official Go wiki page describing compiler optimizations including escape analysis and inlining.
- Author: Go Team
- Authority: primary
- Kind: guide
- URL: https://go.dev/wiki/CompilerOptimizations
What it covers
- escape analysis basics
- inlining and optimization behavior
- compiler diagnostic flags
Why authoritative
Official Go wiki guidance on compiler optimization behavior and investigation.
Use when
- how does Go escape analysis work here
- why is this value escaping to the heap
- how do I inspect compiler escape decisions
Keywords
- compiler optimizations, escape analysis, inlining, allocations, gcflags