lightyear icon indicating copy to clipboard operation
lightyear copied to clipboard

Add a buffer pool on the network receiver side

Open cBournhonesque opened this issue 8 months ago • 1 comments

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?

cBournhonesque avatar Jun 01 '24 19:06 cBournhonesque