Inside the Go Compiler: Optimizations That Make Your Code Faster

Most Go developers know how to write efficient Go code. But very few know what happens to that code after go build. Consider: func add(a, b int) int { return a + b } func main() { x := add(10, 20) fmt.Println(x) } How many function calls happen here? The obvious answer is one. But … Continue reading Inside the Go Compiler: Optimizations That Make Your Code Faster