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/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>
3 years ago
..
nmcfg all: adapt to opaque netaddr types 3 years ago
clone.go all: add extra information to serialized endpoints 3 years ago
config.go all: add extra information to serialized endpoints 3 years ago
device.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 3 years ago
device_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 3 years ago
parser.go wgcfg: Switch to using mem.RO 3 years ago
parser_test.go wgcfg: use string cut instead of string split 3 years ago
writer.go all: add extra information to serialized endpoints 3 years ago