commit | a720b30cbc2733d7b4daaab7a8cac65f3ff5131d | [log] [tgz] |
---|---|---|
author | Jorropo <jorropo.pgm@gmail.com> | Sun Nov 05 06:54:42 2023 +0100 |
committer | Gopher Robot <gobot@golang.org> | Tue Nov 07 21:56:53 2023 +0000 |
tree | c0706328b3d922b94a5087f8362340b14089c830 | |
parent | a7ef1a2680592dd6662ec0bde823885ae1f3fa5a [diff] |
http2: allocate buffer pools using pointers to arrays This remove the allocation for the slice header in sync.Pool.New and putDataBufferChunk. It also divide the number of allocations kept alive by the pool. Change-Id: Icf493ebc568ae80a4e73e9768a6f1c7fce8e1365 Reviewed-on: https://go-review.googlesource.com/c/net/+/539915 Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: qiulaidongfeng <2645477756@qq.com> Reviewed-by: qiulaidongfeng <2645477756@qq.com>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.