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/cmd
Josh Bleecher Snyder b9c92b90db cmd/derper: optimize handleBootstrapDNS
Do json formatting once, rather than on every request.

Use an atomic.Value.

name                   old time/op    new time/op    delta
HandleBootstrapDNS-10    6.35µs ± 0%    0.10µs ± 4%  -98.35%  (p=0.000 n=14+15)

name                   old alloc/op   new alloc/op   delta
HandleBootstrapDNS-10    3.20kB ± 0%    0.42kB ± 0%  -86.99%  (p=0.000 n=12+15)

name                   old allocs/op  new allocs/op  delta
HandleBootstrapDNS-10      41.0 ± 0%       3.0 ± 0%  -92.68%  (p=0.000 n=15+15)

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 3 years ago
cloner cmd/cloner: mangle "go:generate" in cloner.go 3 years ago
derper cmd/derper: optimize handleBootstrapDNS 3 years ago
derpprobe cmd/derpprobe: check derper TLS certs too 3 years ago
hello cmd/hello: also redirect https://hello.ipn.dev to hello.ts.net 3 years ago
mkpkg cmd/mkpkg: allow zero files in a package. 4 years ago
printdep cmd/printdep: add flag to print out Go toolchain tarball URL 3 years ago
speedtest cmd: upgrade to ffcli v3 3 years ago
tailscale cmd/tailscale: add "tailscale configure-host" to prep a Synology machine at boot 3 years ago
tailscaled cmd/tailscaled, util/winutil: add accessor functions for Windows system policies. 3 years ago
testcontrol cmd/testcontrol: add test control server 3 years ago
tsshd tsshd: fix double exit with different exit codes 3 years ago