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
HighFrequency
Configuration optimized for high-frequency allocations.
public static PoolConfiguration HighFrequency { get; }
Property Value
MaintenanceInterval
Interval for pool maintenance operations.
public TimeSpan MaintenanceInterval { get; init; }
Property Value
MaxPoolSize
Maximum number of objects in the global pool.
public int MaxPoolSize { get; init; }
Property Value
MemoryConstrained
Configuration optimized for memory-constrained environments.
public static PoolConfiguration MemoryConstrained { get; }
Property Value
MinHitRate
Minimum hit rate before increasing pool size.
public double MinHitRate { get; init; }
Property Value
MinPoolSize
Minimum number of objects to maintain in the pool.
public int MinPoolSize { get; init; }
Property Value
ObjectLifetime
Maximum lifetime of objects in the pool.
public TimeSpan? ObjectLifetime { get; init; }
Property Value
PrePopulateCount
Number of objects to pre-populate the pool with.
public int PrePopulateCount { get; init; }
Property Value
ThreadLocalCapacity
Capacity of thread-local pools.
public int ThreadLocalCapacity { get; init; }