OnixS C++ CME MDP Streamlined Market Data Handler 1.2.0
API Documentation
Loading...
Searching...
No Matches
MemoryPoolSettings Class Reference

Public Member Functions

 MemoryPoolSettings ()
size_t blockIncrease () const
void blockIncrease (size_t increase)
size_t increaseQty () const
void increaseQty (size_t qty)
size_t chunkSize () const
void chunkSize (size_t size)
size_t chunkScaling () const
void chunkScaling (size_t factor)

Detailed Description

Control parameters affecting behavior of memory pool used by Handler while processing market data.

Definition at line 49 of file MemoryPoolSettings.h.

Constructor & Destructor Documentation

◆ MemoryPoolSettings()

MemoryPoolSettings ( )
inline

Initializes parameters with default values.

Definition at line 61 of file MemoryPoolSettings.h.

Member Function Documentation

◆ blockIncrease() [1/2]

size_t blockIncrease ( ) const
inline

Memory block increase value.

Memory pool allocates blocks divisible by given value.

Definition at line 72 of file MemoryPoolSettings.h.

◆ blockIncrease() [2/2]

void blockIncrease ( size_t increase)
inline

Updates memory block increase value.

Memory pool allocates blocks divisible by given value.

Definition at line 81 of file MemoryPoolSettings.h.

◆ chunkScaling() [1/2]

size_t chunkScaling ( ) const
inline

Defines chunk scale factor.

Each time memory pool allocates a new chunk of blocks, its size is scaled by given factor.

Definition at line 160 of file MemoryPoolSettings.h.

◆ chunkScaling() [2/2]

void chunkScaling ( size_t factor)
inline

Defines chunk scale factor.

Each time memory pool allocates a new chunk of blocks, its size is scaled by given factor.

Definition at line 170 of file MemoryPoolSettings.h.

◆ chunkSize() [1/2]

size_t chunkSize ( ) const
inline

Number of blocks per chunk.

Memory pool allocates chunks of blocks thus reducing number of actual allocations. Given parameter specifies number of memory blocks of same size allocated at once if pool is empty.

Definition at line 131 of file MemoryPoolSettings.h.

◆ chunkSize() [2/2]

void chunkSize ( size_t size)
inline

Number of blocks per chunk.

Memory pool allocates chunks of blocks thus reducing number of actual allocations. Given parameter specifies number of memory blocks of same size allocated at once if pool is empty.

Definition at line 143 of file MemoryPoolSettings.h.

◆ increaseQty() [1/2]

size_t increaseQty ( ) const
inline

Limits number of increases memory pool does.

Memory pool allocates blocks divisible by 'blockIncrease' value. Efficient allocation is performed for blocks whose size doesn't exceeds multiplication of 'blockIncrease' and 'increaseQty' values. Other blocks are allocated upon request without caching.

Definition at line 100 of file MemoryPoolSettings.h.

◆ increaseQty() [2/2]

void increaseQty ( size_t qty)
inline

Limits number of increases memory pool does.

Memory pool allocates blocks divisible by 'blockIncrease' value. Efficient allocation is performed for blocks whose size doesn't exceeds multiplication of 'blockIncrease' and 'increaseQty' values. Other blocks are allocated upon request without caching.

Definition at line 112 of file MemoryPoolSettings.h.