Skip to content

Commit

Permalink
RecyclableMemoryStream のオプションを指定するようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocelot1210 committed Nov 3, 2023
1 parent 6fdc4b2 commit 3612dcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LibX4/FileSystem/CatFileLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ private CatFileLoader(string rootDir, int capacity)
RootDir = rootDir;
_entries = new Dictionary<string, Entry>(capacity, StringComparer.OrdinalIgnoreCase);
_memoryStreamManager = new RecyclableMemoryStreamManager();
_memoryStreamManager.GenerateCallStacks = true;
_memoryStreamManager.AggressiveBufferReturn = true;
_memoryStreamManager.MaximumFreeLargePoolBytes = 16 * (1024 * 1024);
_memoryStreamManager.MaximumFreeSmallPoolBytes = 100 * 1024;
}


Expand Down

0 comments on commit 3612dcc

Please sign in to comment.