1 instantiation of PooledSortedSet
Test.Utilities (1)
PooledSortedSet.cs (1)
50() => new PooledSortedSet<T>(pool, comparer),
11 references to PooledSortedSet
Test.Utilities (11)
PooledSortedSet.cs (11)
19private readonly ObjectPool<PooledSortedSet<T>>? _pool; 21public PooledSortedSet(ObjectPool<PooledSortedSet<T>>? pool, IComparer<T>? comparer = null) 43private static readonly ObjectPool<PooledSortedSet<T>> s_poolInstance = CreatePool(); 44private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<PooledSortedSet<T>>> s_poolInstancesByComparer = new(); 46private static ObjectPool<PooledSortedSet<T>> CreatePool(IComparer<T>? comparer = null) 48ObjectPool<PooledSortedSet<T>>? pool = null; 49pool = new ObjectPool<PooledSortedSet<T>>( 60public static PooledSortedSet<T> GetInstance(IComparer<T>? comparer = null) 65var instance = pool.Allocate(); 76public static PooledSortedSet<T> GetInstance(IEnumerable<T> initializer, IComparer<T>? comparer = null) 78var instance = GetInstance(comparer);