59 Commits (7f83f9fc832b17626e94de308cf37a29e04cd555)

Author SHA1 Message Date
Brad Fitzpatrick 7c1d6e35a5 all: use Go 1.22 range-over-int 2 years ago
Joe Tsai 94a4f701c2
all: use reflect.TypeFor now available in Go 1.22 (#11078) 2 years ago
Joe Tsai 60657ac83f
util/deephash: tighten up SelfHasher API (#11012) 2 years ago
Joe Tsai 84f8311bcd
util/deephash: document pathological deephash behavior (#11010) 2 years ago
Tom DNetto 2aeef4e610 util/deephash: implement SelfHasher to allow types to hash themselves 2 years ago
Brad Fitzpatrick 4af22f3785 util/deephash: add IncludeFields, ExcludeFields HasherForType Options 3 years ago
Will Norris 71029cea2d all: update copyright and license headers 3 years ago
Josh Soref d4811f11a0 all: fix spelling mistakes 4 years ago
Andrew Dunham 4b996ad5e3
util/deephash: add AppendSum method (#5768) 4 years ago
Joe Tsai 7e40071571
util/deephash: handle slice edge-cases (#5471) 4 years ago
Joe Tsai 9bf13fc3d1
util/deephash: remove getTypeInfo (#5469) 4 years ago
Joe Tsai ab7e6f3f11
util/deephash: require pointer in API (#5467) 4 years ago
Joe Tsai c5b1565337
util/deephash: move pointer and interface logic to separate function (#5465) 4 years ago
Joe Tsai d2e2d8438b
util/deephash: move map logic to separate function (#5464) 4 years ago
Joe Tsai 23c3831ff9
util/deephash: coalesce struct logic (#5466) 4 years ago
Joe Tsai 296b008b9f
util/deephash: move array and slice logic to separate function (#5463) 4 years ago
Joe Tsai 31bf3874d6
util/deephash: use unsafe.Pointer instead of reflect.Value (#5459) 4 years ago
Joe Tsai 70f9fc8c7a
util/deephash: rely on direct memory hashing for primitive kinds (#5457) 4 years ago
Joe Tsai 531ccca648
util/deephash: delete slow path (#5423) 4 years ago
Joe Tsai 3fc8683585
util/deephash: expand fast-path capabilities (#5404) 4 years ago
Joe Tsai d32700c7b2
util/deephash: specialize for netip.Addr and drop AppendTo support (#5402) 4 years ago
Joe Tsai 03f7e4e577
util/hashx: move from sha256x (#5388) 4 years ago
Joe Tsai f061d20c9d
util/sha256x: rename Hash as Block512 (#5351) 4 years ago
Joe Tsai 44d62b65d0
util/deephash: move typeIsRecursive and canMemHash to types.go (#5386) 4 years ago
Joe Tsai d53eb6fa11
util/deephash: simplify typeIsRecursive (#5385) 4 years ago
Joe Tsai 23ec3c104a
util/deephash: remove unused stack slice in typeIsRecursive (#5363) 4 years ago
Joe Tsai c200229f9e
util/deephash: simplify canMemHash (#5384) 4 years ago
Joe Tsai 32a1a3d1c0
util/deephash: avoid variadic argument for Update (#5372) 4 years ago
Joe Tsai 548fa63e49
util/deephash: use binary encoding of time.Time (#5352) 4 years ago
Joe Tsai 1f7479466e
util/deephash: use sha256x (#5339) 4 years ago
Joe Tsai 77a92f326d
util/deephash: avoid using sync.Pool for reflect.MapIter (#5333) 4 years ago
Joe Tsai 539c5e44c5
util/deephash: always keep values addressable (#5328) 4 years ago
Brad Fitzpatrick 116f55ff66 all: gofmt for Go 1.19 4 years ago
Brad Fitzpatrick 04cf46a762 util/deephash: fix unexported time.Time hashing 4 years ago
Brad Fitzpatrick 2a22ea3e83 util/deephash: generate type-specific hasher funcs 4 years ago
Brad Fitzpatrick 35782f891d util/deephash: add canMemHash func + typeInfo property 4 years ago
Brad Fitzpatrick 8c5c87be26 util/deephash: fix collisions between different types 4 years ago
Brad Fitzpatrick 757ecf7e80 util/deephash: fix map hashing when key & element have the same type 4 years ago
Brad Fitzpatrick f31588786f util/deephash: don't track cycles on non-recursive types 4 years ago
Brad Fitzpatrick 36ea837736 util/deephash: fix map hashing to actually hash elements 4 years ago
Josh Bleecher Snyder 0868329936 all: use any instead of interface{} 4 years ago
Josh Bleecher Snyder 97a01b7b17 util/deephash: remove Tailscale toolchain compatibility shim 4 years ago
slowy07 ac0353e982 fix: typo spelling grammar 5 years ago
Joe Tsai 9d0c86b6ec
util/deephash: remove unnecessary formatting for structs and slices (#2571) 5 years ago
Joe Tsai d8fbce7eef
util/deephash: hash uint{8,16,32,64} explicitly (#2502) 5 years ago
Joe Tsai 01d4dd331d
util/deephash: simplify hasher.hashMap (#2503) 5 years ago
Joe Tsai d145c594ad
util/deephash: improve cycle detection (#2470) 5 years ago
Joe Tsai d666bd8533
util/deephash: disambiguate hashing of AppendTo (#2483) 5 years ago
Joe Tsai 23ad028414
util/deephash: include type as part of hash for interfaces (#2476) 5 years ago
Joe Tsai a5fb8e0731
util/deephash: introduce deliberate instability (#2477) 5 years ago