There were a couple of things that didn’t make sense to me initially in terms of optimisation of Go code. I’m going to try to list some of them that I found more interesting and you should be aware of this if you’re really working hard to optimize your Go program for performance or memory usage.
Escape analysis
The term “Escape analysis” is referring to allocation of a variable on the heap.
The basic rule is that if a reference to a variable is returned from th...
Published on July 07, 2017 11:00