tailscale/portlist
Brad Fitzpatrick 3697609aaa portlist: remove unix.Readlink allocs on Linux
name       old time/op    new time/op    delta
    GetList-8    11.2ms ± 5%    11.1ms ± 3%     ~     (p=0.661 n=10+9)

    name       old alloc/op   new alloc/op   delta
    GetList-8    83.3kB ± 1%    67.4kB ± 1%  -19.05%  (p=0.000 n=10+10)

    name       old allocs/op  new allocs/op  delta
    GetList-8     2.89k ± 2%     2.19k ± 1%  -24.24%  (p=0.000 n=10+10)

(real issue is we're calling this code as much as we are, but easy
enough to make it efficient because it'll still need to be called
sometimes in any case)

Updates #5958

Change-Id: I90c20278d73e80315a840aed1397d24faa308d93
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-10-22 11:30:53 -07:00
..
clean.go portlist: normalise space delimited process names (#5634) 2022-09-15 12:17:31 +02:00
clean_test.go portlist: normalise space delimited process names (#5634) 2022-09-15 12:17:31 +02:00
netstat.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
netstat_exec.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
netstat_test.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
poller.go portlist: unexport all Poller fields, removing unused one, rework channels 2022-10-22 05:47:34 -07:00
portlist.go portlist: further reduce allocations on Linux 2022-10-22 10:50:51 -07:00
portlist_ios.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
portlist_js.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
portlist_linux.go portlist: remove unix.Readlink allocs on Linux 2022-10-22 11:30:53 -07:00
portlist_linux_test.go portlist: further reduce allocations on Linux 2022-10-22 10:50:51 -07:00
portlist_macos.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
portlist_other.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
portlist_test.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00
portlist_windows.go portlist: update some internals to use append-style APIs 2022-10-21 22:26:37 -07:00