rusty_common/memory/
mod.rs

1//! Memory management utilities for high-frequency trading
2//!
3//! This module provides memory pools, zero-copy operations, and allocation-free
4//! data structures optimized for sub-microsecond latency trading systems.
5
6pub mod hft_pools;
7pub mod object_pool;
8pub mod trading_pools;
9pub mod zerocopy_pools;
10
11// Re-export commonly used types for convenience
12pub use object_pool::{
13    FixedPool, LocalObjectPool, PooledObject, ThreadSafeObjectPool, ThreadSafePooledObject,
14};
15pub use zerocopy_pools::{
16    BufferHandle, GlobalPoolManager, GlobalPoolStatistics, PoolStatistics, SimdBufferHandle,
17    SimdMemoryPool, TypedBufferHandle, TypedMemoryPool, ZerocopyMemoryPool, ZerocopyPoolConfig,
18};
19
20pub use trading_pools::{
21    DefaultOrderProcessing, JsonProcessingPool, MarketDataPool, OrderBufferType,
22    OrderProcessingPool, PooledOrderProcessing, PooledWebSocketMessage, TradingPoolManager,
23    WebSocketMessagePool, WebSocketMessageType, get_global_trading_pools, initialize_trading_pools,
24    with_thread_local_pools,
25};
26
27pub use hft_pools::{
28    HftBufferHandle, HftBufferPool, HftPoolConfig, HftPoolManager, HftPoolStats, OrderHandle,
29    OrderPool, PooledOrder, PooledTrade, TradeHandle, TradePool, global_hft_pools, with_hft_pools,
30};