Module hft_pools

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

HftBufferHandle
Handle to a pooled buffer that returns to pool on drop
HftBufferPool
Buffer pool for message processing with const generic capacity and buffer size
HftPoolConfig
Configuration for HFT object pools
HftPoolManager
Combined HFT pool manager
HftPoolStats
Statistics for HFT pools
OrderHandle
Handle to a pooled order that returns to pool on drop
OrderPool
Object pool for orders with const generic capacity
PooledOrder
Pooled order object for zero-allocation order processing
PooledTrade
Pooled trade object for zero-allocation trade processing
TradeHandle
Handle to a pooled trade that returns to pool on drop
TradePool
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§

HftBufferPool64
HFT buffer pool with 64 buffers of 32KB each
HftBufferPool128
HFT buffer pool with 128 buffers of 64KB each
HftBufferPool256
HFT buffer pool with 256 buffers of 128KB each
OrderPool512
Order pool with capacity for 512 orders
OrderPool1024
Order pool with capacity for 1024 orders
OrderPool2048
Order pool with capacity for 2048 orders
TradePool1024
Trade pool with capacity for 1024 trades
TradePool2048
Trade pool with capacity for 2048 trades
TradePool4096
Trade pool with capacity for 4096 trades