yanet-platform / yanet

A high performance framework for forwarding traffic based on DPDK
Other
164 stars 17 forks source link

Superfluous memory allocations in fragmentation_t #206

Open TheRandomCharacter opened 3 weeks ago

TheRandomCharacter commented 3 weeks ago

https://github.com/yanet-platform/yanet/blob/87748d7bf95f44ba21725197b0ef18e196310741/dataplane/fragmentation.cpp#L161-L164 It would be better to reuse same vector, instead of constructing and growing it every handle() call