cbsr.dev — Leonardo Courbassier's blog

Leonardo Courbassier — systems engineer. I write about compilers, memory models, and the machinery under your runtime.

latest

Heap vs Stack in Go: How Compiler Knowledge Saves You GC Cycles

· #go #memory-management #escape-analysis #performance #systems · 7 min

Stack is fast, heap is heavy. In Go, you don’t decide which one to use — the compiler does. Let’s see how escape analysis impacts performance and what you can do about it.

posts

$ cd ./blog — all posts →