Expand description
High-frequency trading object pools for zero-allocation operations
This module provides specialized object pools for HFT operations, including pools for orders, trades, and message buffers.
Re-exports§
pub use HftBufferPool128 as DefaultHftBufferPool;pub use OrderPool1024 as DefaultOrderPool;pub use TradePool2048 as DefaultTradePool;
Structs§
- HftBuffer
Handle - Handle to a pooled buffer that returns to pool on drop
- HftBuffer
Pool - Buffer pool for message processing with const generic capacity and buffer size
- HftPool
Config - Configuration for HFT object pools
- HftPool
Manager - Combined HFT pool manager
- HftPool
Stats - Statistics for HFT pools
- Order
Handle - Handle to a pooled order that returns to pool on drop
- Order
Pool - Object pool for orders with const generic capacity
- Pooled
Order - Pooled order object for zero-allocation order processing
- Pooled
Trade - Pooled trade object for zero-allocation trade processing
- Trade
Handle - Handle to a pooled trade that returns to pool on drop
- Trade
Pool - Object pool for trades with const generic capacity
Functions§
- global_
hft_ pools - Get the global HFT pool manager
- with_
hft_ pools - Access thread-local HFT pools
Type Aliases§
- HftBuffer
Pool64 - HFT buffer pool with 64 buffers of 32KB each
- HftBuffer
Pool128 - HFT buffer pool with 128 buffers of 64KB each
- HftBuffer
Pool256 - HFT buffer pool with 256 buffers of 128KB each
- Order
Pool512 - Order pool with capacity for 512 orders
- Order
Pool1024 - Order pool with capacity for 1024 orders
- Order
Pool2048 - Order pool with capacity for 2048 orders
- Trade
Pool1024 - Trade pool with capacity for 1024 trades
- Trade
Pool2048 - Trade pool with capacity for 2048 trades
- Trade
Pool4096 - Trade pool with capacity for 4096 trades