> The compiler's -json optimization logging now reports large (>= 128 byte) copies and includes explanations of escape analysis decisions.
This sounds interesting.
This sounds interesting.
To get explanations on the optimization decisions by the compiler build your package with:
go build -gcflags="-m -m"
See also: go tool compile -h
go doc cmd/compile