tailscale/wgengine
Josh Bleecher Snyder adf696172d wgengine/userspace: reduce allocations in getStatus
Two optimizations.

Use values instead of pointers.
We were using pointers to make track the "peer in progress" easier.
It's not too hard to do it manually, though.

Make two passes through the data, so that we can size our
return value accurately from the beginning.
This is cheap enough compared to the allocation,
which grows linearly in the number of peers,
that it is worth doing.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-08-18 16:12:08 -07:00
..
bench wgengine: randomize client port if netmap says to 2021-06-23 08:51:37 -07:00
filter tstime/rate: new package 2021-07-29 12:56:58 -07:00
magicsock wgengine/magicsock: move debug knobs to their own file, compile out on iOS 2021-08-15 13:21:22 -07:00
monitor all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
netstack wgengine/netstack: implement UDP relaying to advertised subnets 2021-07-21 22:32:26 -07:00
router wgengine/router: pass in AmbientCaps when calling ip rule 2021-08-18 13:28:53 -07:00
wgcfg wgcfg: Switch to using mem.RO 2021-07-13 13:45:44 -07:00
wglog wgengine/wglog: match upstream wireguard-go's code for wireguardGoString 2021-06-04 13:06:28 -07:00
winnet wgengine/winnet: don't build on non-windows 2021-02-09 21:09:24 -08:00
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
pendopen.go wgengine/magicsock: use mono.Time 2021-07-29 12:56:58 -07:00
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
userspace_test.go wgengine: use mono.Time 2021-07-29 12:56:58 -07:00
userspace.go wgengine/userspace: reduce allocations in getStatus 2021-08-18 16:12:08 -07:00
watchdog_test.go wgengine: extend TestWatchdog timeout on macOS 2021-03-27 09:27:11 -07:00
watchdog.go wgengine: randomize client port if netmap says to 2021-06-23 08:51:37 -07:00
wgengine.go wgengine: randomize client port if netmap says to 2021-06-23 08:51:37 -07:00