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/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>
4 years ago
..
deephash.go internal/deephash: use netaddr AppendTo methods 4 years ago
deephash_test.go internal/deephash: hash maps without sorting in the acyclic common case 4 years ago
fmtsort.go internal/deephash: rename from deepprint 4 years ago
mapiter.go internal/deephash: use MapIter.Set{Key,Value} 4 years ago
mapiter_future.go internal/deephash: use MapIter.Set{Key,Value} 4 years ago