I really enjoyed reading this article from Twitch engineers. They lowered the GC collection rate by allocating a 10GB byte slice on the boot time, which in turn reduced their CPU utilization by 30% and improved the API latency and responsiveness during the traffic peaks. How crazy is that?
Go memory ballast: How I learnt to stop worrying and love the heap
I’m a big fan of small code changes that can have large impact. This may seem like an obvious thing to state, but let me explain:
Join in on the conversation with Paul when you subscribe to Golang Toronto.