Update BigArrayPool

This commit is contained in:
VaDiM
2026-04-20 03:35:31 +03:00
parent 78680987bf
commit 456bc63e96
+3 -2
View File
@@ -1,4 +1,5 @@
using System.Buffers;
using System;
using System.Buffers;
namespace AssetStudio
{
@@ -8,7 +9,7 @@ namespace AssetStudio
static BigArrayPool()
{
Shared = ArrayPool<T>.Create(256 * 1024 * 1024, 5);
Shared = ArrayPool<T>.Create(256 * 1024 * 1024, (int)MathF.Max(5, Environment.ProcessorCount / 2f));
}
}
}