Skip to content

Commit

Permalink
preconfigure 4kb
Browse files Browse the repository at this point in the history
  • Loading branch information
j0nimost committed Oct 17, 2023
1 parent cac1ad4 commit acef17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kafa/Kafa.Stream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static async ValueTask<TextWriter> WriteAsync<T>(List<T> entities, KafaOp
{
ArgumentNullException.ThrowIfNull(entities, nameof(entities));
var reflection = SetupOptions<T>(options);
using var strWriter = new StringWriter(new StringBuilder());
using var strWriter = new StringWriter(new StringBuilder(4096)); // 4Kb
return await reflection.GetProperties<T>(entities, strWriter);
}

Expand Down

0 comments on commit acef17c

Please sign in to comment.