]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make a type-specialized copy of encoding/binary.ReadUvarint
authorDavid Chase <drchase@google.com>
Tue, 27 Sep 2022 18:37:35 +0000 (14:37 -0400)
committerDavid Chase <drchase@google.com>
Tue, 27 Sep 2022 20:58:46 +0000 (20:58 +0000)
commitcaa8e1f97788d4276276d68610fadc6179a022ee
tree03ac749b283a8498169819642eb1c9e6891f2302
parente8afb2911125ad65ddc02f7b83ab78a3e2f573b7
cmd/compile: make a type-specialized copy of encoding/binary.ReadUvarint

This is to get better escape analysis for a frequently-allocated object.

Change-Id: I1942a4e1c3cd1f0fa870bc8433a0165c18ce9c75
Reviewed-on: https://go-review.googlesource.com/c/go/+/435336
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/internal/pkgbits/decoder.go