Expand description
Batch socket operations for improved performance.
This module provides high-performance batch socket operations using
platform-specific APIs like sendmmsg and recvmmsg on Linux.
on platforms without native batch support, it falls back to standard
socket operations.
§Performance
Batch operations can improve UDP throughput by 30-50% at high packet rates by reducing system call overhead.
Structs§
- UdpRecv
Batch - A batch of UDP packets received.
- UdpSend
Batch - A batch of UDP packets ready to send.
Constants§
- MAX_
BATCH_ SIZE - Maximum number of messages to batch in a single operation.