Obscure Go Optimisations - Bryan Boreham
Did you know that Go will sometimes embed a type-conversion silently into your program? And that conversion, especially if it requires a memory allocation, may be slowing things down by 20% or more? Come with us as Bryan shows how to look for these issues in CPU and memory profiles, how to spot the signs of expensive conversions, and how to eliminate them from your code. Examples will be drawn from Open Source projects such as Prometheus.
August 16, 2022