You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We allocate a lot of temporary things during a build, e.g. []byte buffers, gzip.Reader, gzip.Writer, bufio.Writer, bufio.Reader.
This is not a huge deal when building a single image, but the GC pressure is more noticeable when building a lot of images (as we do in the terraform provider).
We can alleviate a lot of this pressure by maintaining a few sync.Pools and reusing these objects wherever we can.
The text was updated successfully, but these errors were encountered:
We allocate a lot of temporary things during a build, e.g.
[]byte
buffers,gzip.Reader
,gzip.Writer
,bufio.Writer
,bufio.Reader
.This is not a huge deal when building a single image, but the GC pressure is more noticeable when building a lot of images (as we do in the terraform provider).
We can alleviate a lot of this pressure by maintaining a few
sync.Pool
s and reusing these objects wherever we can.The text was updated successfully, but these errors were encountered: