#include <OnixS/CME/MDH/MemoryPoolSettings.h>
Public Member Functions | |
MemoryPoolSettings () | |
MemoryPoolSettings (const MemoryPoolSettings &other) | |
~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) |
MemoryPoolSettings & | operator= (const MemoryPoolSettings &other) |
Control parameters affecting behavior of memory pool used by Handler while processing market data.
Definition at line 46 of file MemoryPoolSettings.h.
|
inline |
Initializes parameters with default values.
Definition at line 50 of file MemoryPoolSettings.h.
|
inline |
Initializes as a copy.
Definition at line 59 of file MemoryPoolSettings.h.
|
inline |
Finalizes the instance.
Definition at line 68 of file MemoryPoolSettings.h.
|
inline |
Memory block increase value.
Memory pool allocates blocks divisible by given value.
Definition at line 74 of file MemoryPoolSettings.h.
|
inline |
Updates memory block increase value.
Memory pool allocates blocks divisible by given value.
Definition at line 83 of file MemoryPoolSettings.h.
|
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 169 of file MemoryPoolSettings.h.
|
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 178 of file MemoryPoolSettings.h.
|
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 139 of file MemoryPoolSettings.h.
|
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 151 of file MemoryPoolSettings.h.
|
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 105 of file MemoryPoolSettings.h.
|
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 118 of file MemoryPoolSettings.h.
|
inline |
Initializes as a copy.
Definition at line 193 of file MemoryPoolSettings.h.