Allocation Efficiency in High-Performance Go Services


This will change the way I think for such a long time:

A common hypothesis derived from intuition goes something like this: “copying values is expensive, so instead I’ll use a pointer.” However, in many cases copying a value is much less expensive than the overhead of using a pointer.

Read more