tailscale/util/deephash
Brad Fitzpatrick bd93c3067e wgengine/filter/filtertype: make Match.IPProto a view
I noticed we were allocating these every time when they could just
share the same memory. Rather than document ownership, just lock it
down with a view.

I was considering doing all of the fields but decided to just do this
one first as test to see how infectious it became.  Conclusion: not
very.

Updates #cleanup (while working towards tailscale/corp#20514)

Change-Id: I8ce08519de0c9a53f20292adfbecd970fe362de0
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-06-18 13:30:55 -07:00
..
testtype all: update copyright and license headers 2023-01-27 15:36:29 -08:00
debug.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
deephash.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
deephash_test.go wgengine/filter/filtertype: make Match.IPProto a view 2024-06-18 13:30:55 -07:00
pointer.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pointer_norace.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pointer_race.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
types.go all: use reflect.TypeFor now available in Go 1.22 (#11078) 2024-02-08 17:34:22 -08:00
types_test.go util/deephash: tighten up SelfHasher API (#11012) 2024-02-01 17:07:41 -08:00