From 3612dcceb606cff6ce8dca93f596a5f3239d8add Mon Sep 17 00:00:00 2001 From: Ocelot <16898663+Ocelot1210@users.noreply.github.com> Date: Fri, 3 Nov 2023 21:18:29 +0900 Subject: [PATCH] =?UTF-8?q?RecyclableMemoryStream=20=E3=81=AE=E3=82=AA?= =?UTF-8?q?=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=92=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LibX4/FileSystem/CatFileLoader.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LibX4/FileSystem/CatFileLoader.cs b/LibX4/FileSystem/CatFileLoader.cs index 9c31c3d3..6f2cc4ab 100644 --- a/LibX4/FileSystem/CatFileLoader.cs +++ b/LibX4/FileSystem/CatFileLoader.cs @@ -60,6 +60,10 @@ private CatFileLoader(string rootDir, int capacity) RootDir = rootDir; _entries = new Dictionary(capacity, StringComparer.OrdinalIgnoreCase); _memoryStreamManager = new RecyclableMemoryStreamManager(); + _memoryStreamManager.GenerateCallStacks = true; + _memoryStreamManager.AggressiveBufferReturn = true; + _memoryStreamManager.MaximumFreeLargePoolBytes = 16 * (1024 * 1024); + _memoryStreamManager.MaximumFreeSmallPoolBytes = 100 * 1024; }