Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/http: use copyBufPool in transferWriter.doBodyCopy()
This patch is a followup to 6fd82d8. It applies copyBufPool optimization to transferWriter.doBodyCopy(). The function is very frequently used - every time Request or Response is written. Without this patch for every Request and Response processed, if there is a body, we need to allocate and GC a 32k buffer. This is quickly causing GC pressure. Fixes #57202
- Loading branch information