We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad9e56 commit e554dcaCopy full SHA for e554dca
src/ImageSharp/IO/ChunkedMemoryStream.cs
@@ -546,6 +546,8 @@ private void ReleaseMemoryChunks(MemoryChunk chunk)
546
[MethodImpl(MethodImplOptions.AggressiveInlining)]
547
private static int GetChunkSize(int i)
548
{
549
+ // Increment chunks sizes with moderate speed, but without using too many buffers from the same ArrayPool bucket of the default MemoryAllocator.
550
+ // https://github.com/SixLabors/ImageSharp/pull/2006#issuecomment-1066244720
551
#pragma warning disable IDE1006 // Naming Styles
552
const int _128K = 1 << 17;
553
const int _4M = 1 << 22;
0 commit comments