tailscale/internal/deephash
Josh Bleecher Snyder b371588ce6 internal/deephash: use netaddr AppendTo methods
Slightly slower, but lots less garbage.
We will recover the speed lost in a follow-up commit.

name    old time/op    new time/op    delta
Hash-8    13.5µs ± 1%    14.3µs ± 0%   +5.84%  (p=0.000 n=10+9)

name    old alloc/op   new alloc/op   delta
Hash-8    1.46kB ± 0%    0.87kB ± 0%  -40.10%  (p=0.000 n=7+10)

name    old allocs/op  new allocs/op  delta
Hash-8      43.0 ± 0%      18.0 ± 0%  -58.14%  (p=0.000 n=10+10)

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-05-24 13:51:23 -07:00
..
deephash_test.go internal/deephash: hash maps without sorting in the acyclic common case 2021-05-24 13:51:23 -07:00
deephash.go internal/deephash: use netaddr AppendTo methods 2021-05-24 13:51:23 -07:00
fmtsort.go internal/deephash: rename from deepprint 2021-05-11 12:11:16 -07:00
mapiter_future.go internal/deephash: use MapIter.Set{Key,Value} 2021-05-24 13:51:23 -07:00
mapiter.go internal/deephash: use MapIter.Set{Key,Value} 2021-05-24 13:51:23 -07:00