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/wgengine/filter
Brad Fitzpatrick 21ed31e33a wgengine/filter: use NewContainsIPFunc for Srcs matches
NewContainsIPFunc returns a contains matcher optimized for its
input. Use that instead of what this did before, always doing a test
over each of a list of netip.Prefixes.

    goos: darwin
    goarch: arm64
    pkg: tailscale.com/wgengine/filter
                        │   before    │                after                │
                        │   sec/op    │   sec/op     vs base                │
    FilterMatch/file1-8   32.60n ± 1%   18.87n ± 1%  -42.12% (p=0.000 n=10)

Updates #12486

Change-Id: I8f902bc064effb431e5b46751115942104ff6531
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
testdata wgengine/filter: add filter benchmark 2 years ago
filter.go wgengine/filter: use NewContainsIPFunc for Srcs matches 2 years ago
filter_clone.go wgengine/filter: use NewContainsIPFunc for Srcs matches 2 years ago
filter_test.go wgengine/filter: use NewContainsIPFunc for Srcs matches 2 years ago
match.go wgengine/filter: use NewContainsIPFunc for Srcs matches 2 years ago
tailcfg.go wgengine/filter: use NewContainsIPFunc for Srcs matches 2 years ago