summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs
diff options
context:
space:
mode:
authorjulianknodt <julianknodt@gmail.com>2021-07-13 11:48:39 -0700
committerJulian Knodt <julianknodt@gmail.com>2021-07-13 13:45:44 -0700
commitfb06ad19e7e9149be92333f0cfbcd7d207a41c7e (patch)
tree77ba017788668e706f3027071754a8242e7fa03a /control/controlknobs
parentd349a3231e8ff9da108e5bb01486cc4c909aa068 (diff)
downloadtailscale-fb06ad19e7e9149be92333f0cfbcd7d207a41c7e.tar.xz
tailscale-fb06ad19e7e9149be92333f0cfbcd7d207a41c7e.zip
wgcfg: Switch to using mem.RO
As Brad suggested, mem.RO allows for a lot of easy perf gains. There were also some smaller changes outside of mem.RO, such as using hex.Decode instead of hex.DecodeString. ``` name old time/op new time/op delta FromUAPI-8 14.7µs ± 3% 12.3µs ± 4% -16.58% (p=0.008 n=5+5) name old alloc/op new alloc/op delta FromUAPI-8 9.52kB ± 0% 7.04kB ± 0% -26.05% (p=0.008 n=5+5) name old allocs/op new allocs/op delta FromUAPI-8 77.0 ± 0% 29.0 ± 0% -62.34% (p=0.008 n=5+5) ``` Signed-off-by: julianknodt <julianknodt@gmail.com>
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions