You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
bench wgengine: randomize client port if netmap says to 3 years ago
filter tstime/rate: new package 3 years ago
magicsock wgengine/magicsock: move debug knobs to their own file, compile out on iOS 3 years ago
monitor all: gofmt with Go 1.17 3 years ago
netstack wgengine/netstack: implement UDP relaying to advertised subnets 3 years ago
router wgengine/router: pass in AmbientCaps when calling `ip rule` 3 years ago
wgcfg wgcfg: Switch to using mem.RO 3 years ago
wglog wgengine/wglog: match upstream wireguard-go's code for wireguardGoString 4 years ago
winnet wgengine/winnet: don't build on non-windows 4 years ago
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
pendopen.go wgengine/magicsock: use mono.Time 3 years ago
userspace.go wgengine/userspace: reduce allocations in getStatus 3 years ago
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
userspace_test.go wgengine: use mono.Time 3 years ago
watchdog.go wgengine: randomize client port if netmap says to 3 years ago
watchdog_test.go wgengine: extend TestWatchdog timeout on macOS 4 years ago
wgengine.go wgengine: randomize client port if netmap says to 3 years ago