Hazel-Networking icon indicating copy to clipboard operation
Hazel-Networking copied to clipboard

Remove the PingPacket pool for a small fixed array of recent pings

Open willardf opened this issue 2 years ago • 0 comments

Pretty simple. Under very heavy load, this will keep pings from pooling up and consuming lots of memory. I think it should still be pretty performant because the ping buffer array is very small and cache-friendly. I think anything better than this would require creating separate "Pong" packets to avoid falling back from reliable acks to ping acks.

willardf avatar Jan 14 '23 00:01 willardf