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>
2022-10-25 10:55:25 -07:00
..
childproc cmd/tailscaled/childproc: add be-child registration mechanism 2022-02-24 14:20:20 -08:00
debug.go all: fix more resource leaks found by staticmajor 2022-10-10 20:46:56 -07:00
depaware.txt portlist: use win32 calls instead of running netstat process [windows] 2022-10-25 10:55:25 -07:00
install_darwin.go cmd/tailscaled: handle tailscaled symlink on macOS 2022-10-11 16:09:26 +01:00
install_windows.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
proxy.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
required_version.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
ssh.go all: gofmt all 2022-04-29 13:06:04 -07:00
tailscaled_bird.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
tailscaled_notwindows.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
tailscaled_test.go cmd/tailscaled: add a no-op test for profiling init-time memory allocs 2022-02-24 14:58:12 -08:00
tailscaled_windows.go all: consistently initialize Logf when creating tsdial.Dialers 2022-09-30 14:40:56 -07:00
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 2020-03-13 14:38:04 -07:00
tailscaled.go all: fix more resource leaks found by staticmajor 2022-10-10 20:46:56 -07:00
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 2021-07-08 14:39:45 -04:00
tailscaled.service cmd/tailscaled: use explicit equal sign in --port=$PORT in tailscaled.service 2022-09-22 11:54:22 -07:00
with_cli.go cmd/tailscaled: add opt-in support for linking CLI into daemon 2022-07-27 11:15:52 -07:00