File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/LinkDotNet.StringBuilder Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ All notable changes to **ValueStringBuilder** will be documented in this file. T
88
99### Changed
1010
11- - Optimized ` Append(scoped ReadOnlySpan<char>) ` to be roughly 5% faster.
11+ - Optimized ` Append(scoped ReadOnlySpan<char>) ` to be roughly 5% faster
12+ - Optimized ` AppendLine ` to have less overhead
1213
1314## [ 1.18.3] - 2023-09-22
1415
Original file line number Diff line number Diff line change @@ -98,8 +98,7 @@ public void Append(ReadOnlyMemory<char> memory)
9898 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
9999 public void AppendLine ( scoped ReadOnlySpan < char > str )
100100 {
101- Append ( str ) ;
102- Append ( Environment . NewLine ) ;
101+ Append ( string . Concat ( str , Environment . NewLine ) ) ;
103102 }
104103
105104 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
You can’t perform that action at this time.
0 commit comments