Expand description
Buffer sizes and sizing utilities
Constants§
- CACHE_
ALIGNED_ LARGE - Large cache-aligned buffer size.
- CACHE_
ALIGNED_ MEDIUM - Medium cache-aligned buffer size.
- CACHE_
ALIGNED_ SMALL - Cache-aligned buffer sizes (compile-time calculated)
- DEFAULT_
CHANNEL_ SIZE - Default channel buffer size
- DEFAULT_
SMART_ STRING_ BUFFER_ SIZE - Default SmartString buffer size
- MARKET_
DATA_ CHANNEL_ SIZE - Market data channel buffer size
- ORDER_
EVENT_ CHANNEL_ SIZE - Order event channel buffer size
- POW2_
BUFFER_ LARGE - Large power-of-2 buffer size.
- POW2_
BUFFER_ MEDIUM - Medium power-of-2 buffer size.
- POW2_
BUFFER_ SMALL - Power-of-2 buffer sizes (compile-time calculated)
- SIMD_
ALIGNED_ 64 - SIMD-aligned buffer sizes (compile-time calculated)
- SIMD_
ALIGNED_ 128 - SIMD-aligned buffer size of 128 bytes.
- SIMD_
ALIGNED_ 256 - SIMD-aligned buffer size of 256 bytes.
- WS_
LARGE_ BUFFER_ SIZE - Large WebSocket message buffer size.
- WS_
MEDIUM_ BUFFER_ SIZE - Medium WebSocket message buffer size.
- WS_
SMALL_ BUFFER_ SIZE - WebSocket message buffer sizes
- WS_
XLARGE_ BUFFER_ SIZE - Extra-large WebSocket message buffer size.
Functions§
- optimal_
channel_ size - Const fn helpers for buffer sizing
- websocket_
buffer_ size - Calculates the optimal WebSocket buffer size based on message count and average message size.