diff options
| author | Josh Bleecher Snyder <josh@tailscale.com> | 2021-02-11 11:56:54 -0800 |
|---|---|---|
| committer | Josh Bleecher Snyder <josh@tailscale.com> | 2021-02-11 11:56:54 -0800 |
| commit | ab72ede692bb62887aae3ef8e780dac989cdbac2 (patch) | |
| tree | 71e982da8eeaacfe202520d72b16adc76d3be24d /smallzstd | |
| parent | 851366432a675e651c57c7a33075673e70bd143b (diff) | |
| download | tailscale-josh/udp-alloc-less.tar.xz tailscale-josh/udp-alloc-less.zip | |
wgengine/magicsock: remove an allocation in ReceiveIPv4josh/udp-alloc-less
Depends on a corresponding package net change.
Incomplete! We appear to need the original net.UDPAddr
in the legacy code path for non-obvious reasons.
Before:
BenchmarkReceiveFrom-8 72898 16888 ns/op 112 B/op 3 allocs/op
After:
BenchmarkReceiveFrom-8 72432 16719 ns/op 64 B/op 2 allocs/op
Co-authored-by: Sonia Appasamy <sonia@tailscale.com>
Diffstat (limited to 'smallzstd')
0 files changed, 0 insertions, 0 deletions
