tailscale/wgengine/wgcfg
julianknodt fb06ad19e7 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>
2021-07-13 13:45:44 -07:00
..
nmcfg all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
clone.go all: add extra information to serialized endpoints 2021-05-11 15:13:42 -07:00
config.go all: add extra information to serialized endpoints 2021-05-11 15:13:42 -07:00
device.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
device_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
parser.go wgcfg: Switch to using mem.RO 2021-07-13 13:45:44 -07:00
parser_test.go wgcfg: use string cut instead of string split 2021-07-13 13:45:44 -07:00
writer.go all: add extra information to serialized endpoints 2021-05-11 15:13:42 -07:00