2 ms·
> Techniques like object pooling are highly error prone, and certainly not "out of the box" Golang. This one is actually out of the box in Golang, it's called
by lossolo 3y ago
> Techniques like object pooling are highly error prone, and certainly not "out of the box" Golang.
This one is actually out of the box in Golang, it's called sync.Pool and is accessible in the standard library. It's very easy to use and not error prone, I've used it many times without any issues.
But creator of VictoriaMetrics is indeed someone very knowledgeable and known in Golang community in context of optimization.