mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
Update BigArrayPool
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Buffers;
|
using System;
|
||||||
|
using System.Buffers;
|
||||||
|
|
||||||
namespace AssetStudio
|
namespace AssetStudio
|
||||||
{
|
{
|
||||||
@@ -8,7 +9,7 @@ namespace AssetStudio
|
|||||||
|
|
||||||
static BigArrayPool()
|
static BigArrayPool()
|
||||||
{
|
{
|
||||||
Shared = ArrayPool<T>.Create(256 * 1024 * 1024, 5);
|
Shared = ArrayPool<T>.Create(256 * 1024 * 1024, (int)MathF.Max(5, Environment.ProcessorCount / 2f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user