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/net/packet
Brad Fitzpatrick 9e0a5cc551 net/flowtrack: optimize Tuple type for use as map key
This gets UDP filter overhead closer to TCP. Still ~2x, but no longer ~3x.

    goos: darwin
    goarch: arm64
    pkg: tailscale.com/wgengine/filter
                                       │   before    │                after                │
                                       │   sec/op    │   sec/op     vs base                │
    FilterMatch/tcp-not-syn-v4-8         15.43n ± 3%   15.38n ± 5%        ~ (p=0.339 n=10)
    FilterMatch/udp-existing-flow-v4-8   42.45n ± 0%   34.77n ± 1%  -18.08% (p=0.000 n=10)
    geomean                              25.59n        23.12n        -9.65%

Updates #12486

Change-Id: I595cfadcc6b7234604bed9c4dd4261e087c0d4c4
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 months ago
..
checksum net/packet: split off checksum munging into different pkg 12 months ago
doc.go all: update copyright and license headers 2 years ago
header.go all: update copyright and license headers 2 years ago
icmp.go all: update copyright and license headers 2 years ago
icmp4.go net/packet: allow more ICMP errors 6 months ago
icmp6.go net/packet: allow more ICMP errors 6 months ago
icmp6_test.go all: update copyright and license headers 2 years ago
ip4.go all: update copyright and license headers 2 years ago
ip6.go all: update copyright and license headers 2 years ago
packet.go net/packet: allow more ICMP errors 6 months ago
packet_test.go all: use Go 1.22 range-over-int 5 months ago
tsmp.go net/flowtrack: optimize Tuple type for use as map key 3 months ago
tsmp_test.go all: update copyright and license headers 2 years ago
udp4.go all: update copyright and license headers 2 years ago
udp6.go all: update copyright and license headers 2 years ago