tailscale/cmd/derper
Brad Fitzpatrick db2cc393af util/dirwalk, metrics, portlist: add new package for fast directory walking
This is similar to the golang.org/x/tools/internal/fastwalk I'd
previously written but not recursive and using mem.RO.

The metrics package already had some Linux-specific directory reading
code in it. Move that out to a new general package that can be reused
by portlist too, which helps its scanning of all /proc files:

    name                old time/op    new time/op    delta
    FindProcessNames-8    2.79ms ± 6%    2.45ms ± 7%  -12.11%  (p=0.000 n=10+10)

    name                old alloc/op   new alloc/op   delta
    FindProcessNames-8    62.9kB ± 0%    33.5kB ± 0%  -46.76%  (p=0.000 n=9+10)

    name                old allocs/op  new allocs/op  delta
    FindProcessNames-8     2.25k ± 0%     0.38k ± 0%  -82.98%  (p=0.000 n=9+10)

Change-Id: I75db393032c328f12d95c39f71c9742c375f207a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-11-05 16:26:51 -07:00
..
bootstrap_dns.go cmd/derper: add support for unpublished bootstrap DNS entries (#5529) 2022-09-02 14:48:30 -04:00
bootstrap_dns_test.go cmd/derper: add support for unpublished bootstrap DNS entries (#5529) 2022-09-02 14:48:30 -04:00
cert.go cmd/derper: fix data race & server panic in manual cert mode 2022-08-10 15:14:09 -07:00
depaware.txt util/dirwalk, metrics, portlist: add new package for fast directory walking 2022-11-05 16:26:51 -07:00
derper.go cmd/derper, net/netcheck: add challenge/response to generate_204 endpoint 2022-10-19 11:10:18 -04:00
derper_test.go cmd/derper, net/netcheck: add challenge/response to generate_204 endpoint 2022-10-19 11:10:18 -04:00
mesh.go derp: use new node key type. 2021-10-28 16:02:11 -07:00
websocket.go net/wsconn: add back custom wrapper for turning a websocket.Conn into a net.Conn 2022-10-18 15:39:32 -07:00