Skip to content

Commit

Permalink
Add a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Jan 11, 2021
1 parent f658232 commit 0915aa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Build/Logging/BinaryLogger/BuildEventArgsWriter.cs
Expand Up @@ -103,6 +103,9 @@ internal class BuildEventArgsWriter
public BuildEventArgsWriter(BinaryWriter binaryWriter)
{
this.originalStream = binaryWriter.BaseStream;

// this doesn't exceed 30K for smaller binlogs so seems like a reasonable
// starting point to avoid reallocations in the common case
this.currentRecordStream = new MemoryStream(65536);

this.originalBinaryWriter = binaryWriter;
Expand Down

0 comments on commit 0915aa9

Please sign in to comment.