diff options
| author | julianknodt <julianknodt@gmail.com> | 2021-07-13 11:48:39 -0700 |
|---|---|---|
| committer | Julian Knodt <julianknodt@gmail.com> | 2021-07-13 13:45:44 -0700 |
| commit | fb06ad19e7e9149be92333f0cfbcd7d207a41c7e (patch) | |
| tree | 77ba017788668e706f3027071754a8242e7fa03a /control/controlknobs/controlknobs.go | |
| parent | d349a3231e8ff9da108e5bb01486cc4c909aa068 (diff) | |
| download | tailscale-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/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
