Cleaning up heap allocations in GoThis is the 18th article of the Eureka Advent Calendar 2020. Yesterday we had a post from Jun Ernesto Okumura on diversity in Spotify’s recommender systems. IntroductionThanks to efficient in-built memory management in the Go runtime, we’re generally able to prioritise correctness and maintainability in our programs without much consideration for the details of ho
![Understanding Allocations in Go](https://cdn-ak-scissors.b.st-hatena.com/image/square/17ef00c056e76141bcdbdca3ed43544b2487ee38/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2AQUN0BI9yOgAZFPASRrA1MQ.jpeg)