&gt; why the compiler shouldn&#x27;t reorder structs so that they take the least space possible<p>I think you&#x27;d get most of the benefit by writing a static analysis tool (a la &quot;go vet&quot;) that suggests when reordering a struct&#x27;s fields would reduce memory consumption.