5 ms·
Couldn't you avoid doing allocations in Go?
Couldn't you avoid doing allocations in Go?
You could, but once you're not allocating things, why not write it in a language without a GC?
You could (and many people do) avoid heap allocations by putting things on the stack.