Closed mathvav closed 8 years ago
Why do you use a worker pool for bytes.Buffers that are template-specific (vs. a global pool)? Is it for getting similar sized buffers each time, or is there another reason?
bytes.Buffer
It is for getting similar sized buffers each time. This reduces memory waste if multiple templates with different sizes are in concurrent use.
Why do you use a worker pool for
bytes.Buffer
s that are template-specific (vs. a global pool)? Is it for getting similar sized buffers each time, or is there another reason?