mirror of
https://github.com/containers/gvisor-tap-vsock.git
synced 2025-12-24 13:29:22 +08:00
This commit improves networking performance by 1) moving an unnecessary allocation to outside the hot loop and by 2) eliminating an unnecessary Write call. This result in ~7% faster throughput as measured via iperf3 and a custom Web service to measure requests per second. Note that this is *despite* the append call. Signed-off-by: Philipp Winter <phw@brave.com>