mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
16 lines
333 B
C#
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));
|
|
}
|
|
}
|
|
}
|