Implementing The Fieldalignment Bundle in Go

SwitchUpCB, PhD
Level Up Coding
Published in
6 min readDec 9, 2022

--

Photo by Author

This simple optimization improves the performance of a Go program with minimal effort. It also has never been implemented until now. The fieldalignment bundle is a technique that you can use to minimize the amount of memory your application uses during runtime. This can result in a performance improvement due to the semantics of the Go Garbage Collector.

What is Struct Padding?

--

--