Hazel-Networking
Hazel-Networking copied to clipboard
Remove the PingPacket pool for a small fixed array of recent pings
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.