lightyear
lightyear copied to clipboard
Add a buffer pool on the network receiver side
The goal is to avoid allocating when we receive a packet, but instead re-use preallocated vectors that we can copy the packet bytes into.
However when I benchmarked it it didn't make any difference... Maybe because we're not receiving enough packets for it to make a difference in terms of allocations?