4 instantiations of MemoryStreamPool
Microsoft.ML.Data (4)
DataLoadSave\Binary\BinarySaver.cs (1)
201_memPool = new MemoryStreamPool();
DataLoadSave\Binary\CodecFactory.cs (1)
42_memPool = memPool ?? new MemoryStreamPool();
DataLoadSave\Binary\MemoryStreamPool.cs (1)
65Interlocked.CompareExchange(ref _pools[index], new MemoryStreamPool(), null);
Transforms\ValueToKeyMappingTransformer.cs (1)
189Interlocked.CompareExchange(ref _codecFactoryPool, new MemoryStreamPool(), null);
9 references to MemoryStreamPool
Microsoft.ML.Data (9)
DataLoadSave\Binary\BinaryLoader.cs (2)
1681private readonly MemoryStreamPool _compPool; 1682private readonly MemoryStreamPool _decompPool;
DataLoadSave\Binary\BinarySaver.cs (1)
56private readonly MemoryStreamPool _memPool;
DataLoadSave\Binary\CodecFactory.cs (2)
24private readonly MemoryStreamPool _memPool; 35public CodecFactory(IHostEnvironment env, MemoryStreamPool memPool = null)
DataLoadSave\Binary\MemoryStreamPool.cs (3)
43private readonly MemoryStreamPool[] _pools; 47_pools = new MemoryStreamPool[IndexFor(int.MaxValue) + 1]; 59public MemoryStreamPool Get(int maxSize)
Transforms\ValueToKeyMappingTransformer.cs (1)
180private static volatile MemoryStreamPool _codecFactoryPool;