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 531ccca648
util/deephash: delete slow path (#5423)
Every implementation of typeHasherFunc always returns true,
which implies that the slow path is no longer executed.
Delete it.

h.hashValueWithType(v, ti, ...) is deleted as it is equivalent to:
	ti.hasher()(h, v)

h.hashValue(v, ...) is deleted as it is equivalent to:
	ti := getTypeInfo(v.Type())
	ti.hasher()(h, v)

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 years ago
..
testtype util/deephash: fix unexported time.Time hashing 2 years ago
deephash.go util/deephash: delete slow path (#5423) 2 years ago
deephash_test.go util/deephash: delete slow path (#5423) 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