Table of Contents

Class PoolConfiguration

Namespace
DotCompute.Memory
Assembly
DotCompute.Memory.dll

Configuration options for the object pool.

public sealed class PoolConfiguration
Inheritance
PoolConfiguration
Inherited Members

Properties

Default

Default configuration optimized for compute workloads.

public static PoolConfiguration Default { get; }

Property Value

PoolConfiguration

HighFrequency

Configuration optimized for high-frequency allocations.

public static PoolConfiguration HighFrequency { get; }

Property Value

PoolConfiguration

MaintenanceInterval

Interval for pool maintenance operations.

public TimeSpan MaintenanceInterval { get; init; }

Property Value

TimeSpan

MaxPoolSize

Maximum number of objects in the global pool.

public int MaxPoolSize { get; init; }

Property Value

int

MemoryConstrained

Configuration optimized for memory-constrained environments.

public static PoolConfiguration MemoryConstrained { get; }

Property Value

PoolConfiguration

MinHitRate

Minimum hit rate before increasing pool size.

public double MinHitRate { get; init; }

Property Value

double

MinPoolSize

Minimum number of objects to maintain in the pool.

public int MinPoolSize { get; init; }

Property Value

int

ObjectLifetime

Maximum lifetime of objects in the pool.

public TimeSpan? ObjectLifetime { get; init; }

Property Value

TimeSpan?

PrePopulateCount

Number of objects to pre-populate the pool with.

public int PrePopulateCount { get; init; }

Property Value

int

ThreadLocalCapacity

Capacity of thread-local pools.

public int ThreadLocalCapacity { get; init; }

Property Value

int