Original link: Why Your Go Code Is Slower Than It Should Be: A Deep Dive Into Heap Allocations / Cristian Curteanu blog.
The point of stack vs heap and escape analysis is relevant in other languages than Go including C# and Java.