Reduce allocation in Go code
methane.github.io
methane.github.io
Passing a parameter as an "interface{}", or creating a slice, also causes the creation of temporary objects, which are usually (always?) on the heap. This may or may not be a big problem depending on how the allocator and garbage collector work. Anyone know?