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 64e9ce8df1 portlist: reduce allocs on Linux
Notably, it no longer allocates proportional to the number of open
sockets on the machine. Any alloc reduction numbers are a little
contrived with such a reduction but e.g. on a machine with 50,000
connections open:

name          old time/op    new time/op    delta
ParsePorts-6    57.7ms ± 6%    32.8ms ± 3%   -43.04%  (p=0.000 n=9+10)

name          old alloc/op   new alloc/op   delta
ParsePorts-6    24.0MB ± 0%     0.0MB ± 0%  -100.00%  (p=0.000 n=10+9)

name          old allocs/op  new allocs/op  delta
ParsePorts-6      100k ± 0%        0k ± 0%   -99.99%  (p=0.000 n=10+10)

Updates tailscale/corp#2566

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
clean.go portlist: report a better process name for .Net on linux. 4 years ago
clean_test.go portlist: report a better process name for .Net on linux. 4 years ago
netstat.go all: simplify build tags involving iOS 3 years ago
netstat_exec.go all: simplify build tags involving iOS 3 years ago
netstat_test.go portlist: filter out all of 127.0.0.0/8, not just 127.0.0.1/32 4 years ago
poller.go portlist: unexport SameInodes method 4 years ago
portlist.go portlist: de-dup services on same (proto, port) on both IPv4/IPv6 4 years ago
portlist_ios.go all: simplify build tags involving iOS 3 years ago
portlist_linux.go portlist: reduce allocs on Linux 3 years ago
portlist_linux_test.go portlist: reduce allocs on Linux 3 years ago
portlist_macos.go portlist: fix build tag to build only on macOS, not macOS+iOS. 3 years ago
portlist_other.go all: gofmt with Go 1.17 3 years ago
portlist_test.go portlist: unexport SameInodes method 4 years ago
portlist_windows.go staticcheck.conf: turn off noisy lint errors 3 years ago