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/magicsock
Brad Fitzpatrick 4811236189 wgengine/magicsock: speed up BenchmarkReceiveFrom, store context.Done chan
context.cancelCtx.Done involves a mutex and isn't as cheap as I
previously assumed. Convert the donec method into a struct field and
store the channel value once. Our one magicsock.Conn gets one pointer
larger, but it cuts ~1% of the CPU time of the ReceiveFrom benchmark
and removes a bubble from the --svg output :)
3 years ago
..
discopingpurpose_string.go wgengine/magicsock: make discoPingPurpose a stringer 4 years ago
legacy.go wgengine/magicsock: adapt to wireguard-go without UpdateDst 3 years ago
magicsock.go wgengine/magicsock: speed up BenchmarkReceiveFrom, store context.Done chan 3 years ago
magicsock_test.go wgengine/magicsock: prevent logging after TestActiveDiscovery completes 3 years ago