aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mbitmap_allocheaders.go
diff options
context:
space:
mode:
authorMichaƂ Matczuk <mmatczuk@gmail.com>2023-11-09 09:43:26 +0000
committerDamien Neil <dneil@google.com>2023-11-09 18:51:38 +0000
commit96eeb4512bd045a2c247f6ebcce46b7e443206e7 (patch)
treeb0d7613c378b4ffe2d6e138574aeaf82b5bbd4e2 /src/runtime/mbitmap_allocheaders.go
parent3128aeec87af4bf63f3df5971127f96685fb4363 (diff)
downloadgo-96eeb4512bd045a2c247f6ebcce46b7e443206e7.tar.xz
net/http: use copyBufPool in transferWriter.doBodyCopy()
This is a followup to CL 14177. It applies copyBufPool optimization to transferWriter.doBodyCopy(). The function is 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 Change-Id: I4c30e1737726ac8d9937846106efd02effbae300 GitHub-Last-Rev: 908573cdbe2e8b6f91ce026cf8632ff5f2c41110 GitHub-Pull-Request: golang/go#57205 Reviewed-on: https://go-review.googlesource.com/c/go/+/456435 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Diffstat (limited to 'src/runtime/mbitmap_allocheaders.go')
0 files changed, 0 insertions, 0 deletions