Table of Contents

Class MemoryPool

Namespace
ParquetSharp
Assembly
ParquetSharp.dll

Base class for memory allocation on the CPU. Tracks the number of allocated bytes.

public sealed class MemoryPool
Inheritance
MemoryPool
Inherited Members

Properties

BackendName

The name of the backend used by this memory pool.

public string BackendName { get; }

Property Value

string

BytesAllocated

The number of bytes currently allocated by this memory pool and not yet freed.

public long BytesAllocated { get; }

Property Value

long

MaxMemory

The peak number of bytes allocated by this memory pool.

public long MaxMemory { get; }

Property Value

long

Methods

GetDefaultMemoryPool()

Get the default memory pool for native allocations. This can be configured by setting the "ARROW_DEFAULT_MEMORY_POOL" environment variable. Possible values are "system", "jemalloc", "mimalloc".

public static MemoryPool GetDefaultMemoryPool()

Returns

MemoryPool

The default memory pool instance

JemallocMemoryPool()

Get a memory pool that uses the jemalloc allocator.

public static MemoryPool JemallocMemoryPool()

Returns

MemoryPool

A jemalloc memory pool

Exceptions

ParquetException

Thrown if ParquetSharp was not built with Jemalloc enabled.

MimallocMemoryPool()

Get a memory pool that uses the mimalloc allocator.

public static MemoryPool MimallocMemoryPool()

Returns

MemoryPool

A mimalloc memory pool

Exceptions

ParquetException

Thrown if ParquetSharp was not built with Mimalloc enabled.

SystemMemoryPool()

Get a memory pool that uses the system allocator.

public static MemoryPool SystemMemoryPool()

Returns

MemoryPool

The system memory pool