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 46ce80758d portlist: update some internals to use append-style APIs
In prep for reducing garbage, being able to reuse memory.  So far this
doesn't actually reuse much. This is just changing signatures around.

But some improvement in any case:

    bradfitz@tsdev:~/src/tailscale.com$ ~/go/bin/benchstat before after
    name       old time/op    new time/op    delta
    GetList-8    11.8ms ± 9%     9.9ms ± 3%  -15.98%  (p=0.000 n=10+10)

    name       old alloc/op   new alloc/op   delta
    GetList-8    99.5kB ± 2%    91.9kB ± 0%   -7.62%  (p=0.000 n=9+9)

    name       old allocs/op  new allocs/op  delta
    GetList-8     3.05k ± 1%     2.93k ± 0%   -3.83%  (p=0.000 n=8+9)

More later, once parsers can reuse strings from previous parses.

Updates #5958

Change-Id: I76cd5048246dd24d11c4e263d8bb8041747fb2b0
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
clean.go portlist: normalise space delimited process names (#5634) 3 years ago
clean_test.go portlist: normalise space delimited process names (#5634) 3 years ago
netstat.go portlist: update some internals to use append-style APIs 3 years ago
netstat_exec.go portlist: update some internals to use append-style APIs 3 years ago
netstat_test.go portlist: update some internals to use append-style APIs 3 years ago
poller.go portlist: update some internals to use append-style APIs 3 years ago
portlist.go portlist: update some internals to use append-style APIs 3 years ago
portlist_ios.go portlist: update some internals to use append-style APIs 3 years ago
portlist_js.go portlist: update some internals to use append-style APIs 3 years ago
portlist_linux.go portlist: update some internals to use append-style APIs 3 years ago
portlist_linux_test.go portlist: update some internals to use append-style APIs 3 years ago
portlist_macos.go portlist: update some internals to use append-style APIs 3 years ago
portlist_other.go portlist: update some internals to use append-style APIs 3 years ago
portlist_test.go portlist: update some internals to use append-style APIs 3 years ago
portlist_windows.go portlist: update some internals to use append-style APIs 3 years ago