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/cmd/tailscaled
Brad Fitzpatrick 35bee36549 portlist: use win32 calls instead of running netstat process [windows]
Turns out using win32 instead of shelling out to child processes is a
bit faster:

    name                  old time/op    new time/op    delta
    GetListIncremental-4     278ms ± 2%       0ms ± 7%  -99.93%  (p=0.000 n=8+10)

    name                  old alloc/op   new alloc/op   delta
    GetListIncremental-4     238kB ± 0%       9kB ± 0%  -96.12%  (p=0.000 n=10+8)

    name                  old allocs/op  new allocs/op  delta
    GetListIncremental-4     1.19k ± 0%     0.02k ± 0%  -98.49%  (p=0.000 n=10+10)

Fixes #3876 (sadly)

Change-Id: I1195ac5de21a8a8b3cdace5871d263e81aa27e91
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
childproc cmd/tailscaled/childproc: add be-child registration mechanism 2 years ago
debug.go all: fix more resource leaks found by staticmajor 2 years ago
depaware.txt portlist: use win32 calls instead of running netstat process [windows] 2 years ago
install_darwin.go cmd/tailscaled: handle tailscaled symlink on macOS 2 years ago
install_windows.go all: require Go 1.19 2 years ago
proxy.go all: require Go 1.19 2 years ago
required_version.go all: require Go 1.19 2 years ago
ssh.go all: gofmt all 2 years ago
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 4 years ago
tailscaled.go all: fix more resource leaks found by staticmajor 2 years ago
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 3 years ago
tailscaled.service cmd/tailscaled: use explicit equal sign in --port=$PORT in tailscaled.service 2 years ago
tailscaled_bird.go all: require Go 1.19 2 years ago
tailscaled_notwindows.go all: require Go 1.19 2 years ago
tailscaled_test.go cmd/tailscaled: add a no-op test for profiling init-time memory allocs 2 years ago
tailscaled_windows.go all: consistently initialize Logf when creating tsdial.Dialers 2 years ago
with_cli.go cmd/tailscaled: add opt-in support for linking CLI into daemon 2 years ago