Module batch_socket

Module batch_socket 

Source
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§

UdpRecvBatch
A batch of UDP packets received.
UdpSendBatch
A batch of UDP packets ready to send.

Constants§

MAX_BATCH_SIZE
Maximum number of messages to batch in a single operation.