]> Cypherpunks repositories - gostls13.git/commit
context: reduce init-time allocations
authorCarlo Alberto Ferraris <cafxx@strayorange.com>
Tue, 6 Dec 2022 05:45:04 +0000 (14:45 +0900)
committerDamien Neil <dneil@google.com>
Fri, 10 Feb 2023 16:32:03 +0000 (16:32 +0000)
commit6e5c26084f9f3bc910181854a4ff20851188e222
tree20e07e299f22c59a0d37f25c16d377b6db1e7d3a
parentf7b32f5281888ee02f384230c48e91af2120f8b8
context: reduce init-time allocations

Small cleanup to remove a couple of needless global variables.
Instead of relying on two instances of emptyCtx having different
addresses, we use different types.

For #26775

Change-Id: I0bc4813e94226f7b3f52bf4b1b3c3a3bbbebcc9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/455455
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Sameer Ajmani <sameer@golang.org>
src/context/context.go