Module object_pool

Source
Expand description

High-performance object pools for HFT systems

Thread-local and thread-safe object pools for zero-allocation recycling of frequently used objects like orders and trades.

Re-exports§

pub use LocalObjectPool64 as DefaultLocalObjectPool;
pub use PooledObject64 as DefaultPooledObject;

Structs§

FixedPool
Ultra-fast fixed-size pool using array storage
LocalObjectPool
Single-threaded object pool using RefCell for maximum performance with const generic capacity
PooledObject
RAII wrapper for objects from LocalObjectPool
ThreadSafeObjectPool
Thread-safe object pool using Mutex
ThreadSafePooledObject
RAII wrapper for objects from ThreadSafeObjectPool

Type Aliases§

LocalObjectPool32
Local object pool with capacity for 32 objects
LocalObjectPool64
Local object pool with capacity for 64 objects
LocalObjectPool128
Local object pool with capacity for 128 objects
PooledObject32
Pooled object handle for a pool with 32 object capacity
PooledObject64
Pooled object handle for a pool with 64 object capacity
PooledObject128
Pooled object handle for a pool with 128 object capacity