Files
AssetStudio/AssetStudio/BigArrayPool.cs
T
2026-04-20 03:35:31 +03:00

16 lines
333 B
C#

using System;
using System.Buffers;
namespace AssetStudio
{
public static class BigArrayPool<T>
{
public static ArrayPool<T> Shared { get; }
static BigArrayPool()
{
Shared = ArrayPool<T>.Create(256 * 1024 * 1024, (int)MathF.Max(5, Environment.ProcessorCount / 2f));
}
}
}