Instead of throwing these objects away after each use, which would just make the garbage collector work harder, we’re better off keeping them in a pool.
Share this post
Go EP17: The Architecture of Go's sync.Pool
Share this post
Instead of throwing these objects away after each use, which would just make the garbage collector work harder, we’re better off keeping them in a pool.