mirror of https://github.com/tailscale/tailscale/
net/tstun: buffer outbound channel
The handoff between tstun.Wrap's Read and poll methods is one of the per-packet hotspots. It shows up in pprof. Making outbound buffered increases throughput. It is hard to measure exactly how much, because the numbers are highly variable, but I'd estimate it at about 1%, using the best observed max throughput across three runs. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>pull/2534/head
parent
7b9f02fcb1
commit
965dccd4fc
Loading…
Reference in New Issue