tailscale/internal/deephash
Josh Bleecher Snyder 4b51fbf48c internal/deephash: increase scratch space size
e66d4e4c81 added AppendTo methods
to some key types. Their marshaled form is longer than 64 bytes.

name    old time/op    new time/op    delta
Hash-8    15.5µs ± 1%    14.8µs ± 1%   -4.17%  (p=0.000 n=9+9)

name    old alloc/op   new alloc/op   delta
Hash-8    1.18kB ± 0%    0.47kB ± 0%  -59.87%  (p=0.000 n=10+10)

name    old allocs/op  new allocs/op  delta
Hash-8      12.0 ± 0%       6.0 ± 0%  -50.00%  (p=0.000 n=10+10)

This is still a bit worse than explicitly handling the types,
but much nicer.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-05-24 15:22:44 -07:00
..
deephash_test.go internal/deephash: add re-usable scratch space 2021-05-24 13:51:23 -07:00
deephash.go internal/deephash: increase scratch space size 2021-05-24 15:22:44 -07:00
fmtsort.go internal/deephash: rename from deepprint 2021-05-11 12:11:16 -07:00
mapiter_future.go internal/deephash: re-use MapIter 2021-05-24 14:47:41 -07:00
mapiter.go internal/deephash: re-use MapIter 2021-05-24 14:47:41 -07:00