Compiler And Runtime Optimizations This page lists optimizations done by the compilers. Note that these are not guaranteed by the language specification. Interface values Zero-width types in interface values Putting a zero-width type in an interface value doesn't allocate. gc: 1.0+ gccgo: ? Word-sized value in an interface value Putting a word-sized-or-less non-pointer type in an interface value d