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/portlist
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
..
clean.go portlist: normalise space delimited process names (#5634) 2 years ago
clean_test.go portlist: normalise space delimited process names (#5634) 2 years ago
netstat.go portlist: update some internals to use append-style APIs 2 years ago
netstat_exec.go portlist: use win32 calls instead of running netstat process [windows] 2 years ago
netstat_test.go portlist: refactor, introduce OS-specific types 2 years ago
poller.go portlist: refactor, introduce OS-specific types 2 years ago
portlist.go portlist: refactor, introduce OS-specific types 2 years ago
portlist_ios.go portlist: update some internals to use append-style APIs 2 years ago
portlist_js.go portlist: update some internals to use append-style APIs 2 years ago
portlist_linux.go portlist: refactor, introduce OS-specific types 2 years ago
portlist_linux_test.go portlist: refactor, introduce OS-specific types 2 years ago
portlist_macos.go portlist: update some internals to use append-style APIs 2 years ago
portlist_other.go portlist: update some internals to use append-style APIs 2 years ago
portlist_test.go portlist: add a test that verifies changes are picked up over time 2 years ago
portlist_windows.go portlist: use win32 calls instead of running netstat process [windows] 2 years ago