Re:Show HN: Molecule – Streaming, zero-allocation protobuf d...
by kyrra on Sunday March 29, 2020 @01:17PM
(#22720672)
It's a common optimization in Go. The benchmark tool that ships with go allows reporting of bytes allocated per call. Many webserver frameworks in Go strive for 0 allocs so as a user of the library, you know it won't cause extra garbage.
https://scene-si.org/2017/06/06/benchmarking-go-programs/