tailscale/net
Brad Fitzpatrick a5d6c9d616 net/netns: optimize defaultRouteInterface a bit
It'll be called a bunch, so worth a bit of effort. Could go further, but not yet.
(really, should hook into wgengine/monitor and only re-read on netlink changes?)

name                     old time/op    new time/op    delta
DefaultRouteInterface-8    60.8µs ±11%    44.6µs ± 5%  -26.65%  (p=0.000 n=20+19)

name                     old alloc/op   new alloc/op   delta
DefaultRouteInterface-8    3.29kB ± 0%    0.55kB ± 0%  -83.21%  (p=0.000 n=20+20)

name                     old allocs/op  new allocs/op  delta
DefaultRouteInterface-8      9.00 ± 0%      6.00 ± 0%  -33.33%  (p=0.000 n=20+20)
2020-05-31 15:37:09 -07:00
..
dnscache net/dnscache: remove unnecessary lint warning. 2020-04-30 20:31:44 -07:00
interfaces Make netcheck handle v6-only interfaces better, faster. 2020-05-28 10:04:20 -07:00
netcheck net/netns, misc tests: remove TestOnlySkipPrivilegedOps, argv checks 2020-05-31 14:40:18 -07:00
netns net/netns: optimize defaultRouteInterface a bit 2020-05-31 15:37:09 -07:00
nettest scripts: add a license header checker. 2020-03-17 21:34:44 -07:00
stun stun, netcheck: move under net 2020-05-25 09:18:24 -07:00
tlsdial net/tlsdial: update package doc to say it's now somewhat useless 2020-04-27 08:17:18 -07:00