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/util/deephash
Joe Tsai 9bf13fc3d1
util/deephash: remove getTypeInfo (#5469)
Add a new lookupTypeHasher function that is just a cached front-end
around the makeTypeHasher function.
We do not need to worry about the recursive type cycle issue that
made getTypeInfo more complicated since makeTypeHasher
is not directly recursive. All calls to itself happen lazily
through a sync.Once upon first use.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 years ago
..
testtype util/deephash: fix unexported time.Time hashing 2 years ago
debug.go util/deephash: add debug printer (#5460) 2 years ago
deephash.go util/deephash: remove getTypeInfo (#5469) 2 years ago
deephash_test.go util/deephash: remove getTypeInfo (#5469) 2 years ago
pointer.go util/deephash: use unsafe.Pointer instead of reflect.Value (#5459) 2 years ago
pointer_norace.go util/deephash: use unsafe.Pointer instead of reflect.Value (#5459) 2 years ago
pointer_race.go util/deephash: use unsafe.Pointer instead of reflect.Value (#5459) 2 years ago
types.go util/deephash: specialize for netip.Addr and drop AppendTo support (#5402) 2 years ago
types_test.go util/deephash: move typeIsRecursive and canMemHash to types.go (#5386) 2 years ago