go/src/internal
Josh Bleecher Snyder 1e0c3b2877 internal/poll: re-use RawSockaddrAny buffers across requests on windows
We were re-allocating a new RawSockaddrAny on every UDP read/write.
We can re-use them instead.

This reduces the number of allocs for UDP read/write on windows to zero.

Co-authored-by: David Crawshaw <crawshaw@golang.org>
Change-Id: I2f05c974e2e7b4f67937ae4e1c99583e81d140af
Reviewed-on: https://go-review.googlesource.com/c/go/+/361404
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-11-04 21:52:51 +00:00
..
abi all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
buildcfg internal/buildcfg: enable the pacer redesign by default 2021-11-04 20:00:54 +00:00
bytealg all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cfg cmd/go: add GOAMD64 environment variable 2021-09-16 17:44:44 +00:00
cpu cmd/go, internal/cpu: use internal/godebug in tests 2021-11-02 06:19:33 +00:00
execabs internal/execabs: replace ioutil.WriteFile with os.WriteFile 2021-04-12 21:57:23 +00:00
fmtsort all: use reflect.{Pointer,PointerTo} 2021-10-26 14:24:17 +00:00
fuzz internal/fuzz: fix internal error handling 2021-11-04 20:01:10 +00:00
goarch all: manual fixups for //go:build vs // +build 2021-10-28 22:38:00 +00:00
godebug net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
goexperiment runtime: implement GC pacer redesign 2021-11-04 20:00:31 +00:00
goos all: manual fixups for //go:build vs // +build 2021-10-28 22:38:00 +00:00
goroot all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
goversion [dev.typeparams] all: merge master (fdab5be) into dev.typeparams 2021-06-14 13:24:47 -07:00
intern net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
itoa all: add internal/itoa package 2021-03-14 17:56:50 +00:00
lazyregexp internal/lazytemplate: add a lazy template wrapper 2019-02-27 23:49:01 +00:00
lazytemplate internal/lazytemplate: add a lazy template wrapper 2019-02-27 23:49:01 +00:00
nettrace
obscuretestdata all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
oserror all: remove os.ErrTimeout 2019-08-02 17:57:18 +00:00
poll internal/poll: re-use RawSockaddrAny buffers across requests on windows 2021-11-04 21:52:51 +00:00
profile all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
race all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
reflectlite all: use reflect.{Pointer,PointerTo} 2021-10-26 14:24:17 +00:00
singleflight internal/singleflight: format someErr 2019-10-25 16:31:41 +00:00
syscall net: pass around pointers to SockaddrInetN 2021-11-04 21:52:36 +00:00
sysinfo testing: print cpu type as label for benchmarks 2020-10-20 21:30:18 +00:00
testenv all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
testlog cmd/go, testing, os: fail test that calls os.Exit(0) 2020-08-27 23:19:15 +00:00
trace runtime: move next_gc and last_next_gc into gcControllerState 2021-04-14 14:03:30 +00:00
unsafeheader internal/unsafeheader: fix reference in godoc comment for type String 2020-05-01 16:14:17 +00:00
xcoff internal/xcoff: fix wrong bit masking comparisons 2020-03-09 18:07:53 +00:00