envoyproxy/envoy

Optimize UdpGsoBatchWriter performance

Open

#15,954 opened on Apr 13, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (5,373 forks)batch import
area/quicarea/udpbughelp wanted

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (Avg merge 8d) (378 merged PRs in 30d)

Description

UdpGsoBatchWriter::writePacket() copies source/destination addresses and linearizes buffer into string on each call. These are unnecessary and add a lot of overhead.

The overall implementation needs to be reviewed to eliminate such cases.

Contributor guide