sync.Pool in Go: When It Actually Helps, and When It Quietly Hurts
sync.Pool is the Go feature most likely to be used incorrectly. A working engineer's guide to when pooling buffers actually saves GC pressure, when it just adds complexity, and the benchmark methodology that tells the difference.
Apr 20, 20267 min read