Skip to content

Commit

Permalink
Make StringBuilderCapacityThreshold the even power of two that was …
Browse files Browse the repository at this point in the history
…intended
  • Loading branch information
nblumhardt authored Oct 10, 2023
1 parent 8d0e2ed commit e059e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serilog/Rendering/ReusableStringWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ReusableStringWriter : StringWriter
/// <summary>
/// Max capacity of StringBuilder we keep for next using
/// </summary>
const int StringBuilderCapacityThreshold = 32678;
const int StringBuilderCapacityThreshold = 32768;

/// <summary>
/// Gets already created StringWriter if there is one available or creates a new one.
Expand Down

0 comments on commit e059e9f

Please sign in to comment.