Skip to content

Commit b9e4cd2

Browse files
authored
start with capacity zero and let EnsureCapacity set it (#204)
1 parent a2ef5ed commit b9e4cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RecyclableMemoryStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public sealed class RecyclableMemoryStream : MemoryStream, IBufferWriter<byte>
9595
/// <summary>
9696
/// All of these blocks must be the same size.
9797
/// </summary>
98-
private readonly List<byte[]> blocks = new List<byte[]>(1);
98+
private readonly List<byte[]> blocks = new List<byte[]>();
9999

100100
private readonly Guid id;
101101

0 commit comments

Comments
 (0)