Table of Contents

Property UseNativeLargeMemoryBuffers

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

UseNativeLargeMemoryBuffers

Gets or sets the global setting for whether to use native memory buffers for large memory segments.

public static bool UseNativeLargeMemoryBuffers { get; set; }

Property Value

bool

Remarks

This value can only be set before any instances of MemoryStreamSlim are created, and once set, it cannot be changed. If this value is set to true, then all large memory segments will be allocated using native memory buffers, which can be more efficient in many scenarios. If this value is set to false, then all memory segments will be allocated using managed heap memory, but allocated in a way that minimizes GC pressure.