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>
2022-08-27 17:39:51 -07:00
..
testtype util/deephash: fix unexported time.Time hashing 2022-07-27 09:28:23 -07:00
debug.go util/deephash: add debug printer (#5460) 2022-08-27 12:14:07 -07:00
deephash_test.go util/deephash: remove getTypeInfo (#5469) 2022-08-27 17:39:51 -07:00
deephash.go util/deephash: remove getTypeInfo (#5469) 2022-08-27 17:39:51 -07:00
pointer_norace.go util/deephash: use unsafe.Pointer instead of reflect.Value (#5459) 2022-08-27 12:30:35 -07:00
pointer_race.go util/deephash: use unsafe.Pointer instead of reflect.Value (#5459) 2022-08-27 12:30:35 -07:00
pointer.go util/deephash: use unsafe.Pointer instead of reflect.Value (#5459) 2022-08-27 12:30:35 -07:00
types_test.go util/deephash: move typeIsRecursive and canMemHash to types.go (#5386) 2022-08-16 09:31:19 -07:00
types.go util/deephash: specialize for netip.Addr and drop AppendTo support (#5402) 2022-08-18 22:54:56 -07:00