Skip to content

Releases: linkdotnet/StringBuilder

v2.0.0

12 Jan 15:02
f3e42e8
Compare
Choose a tag to compare

This is the v2 release of the ValueStringBuilder. There aren't any noticeable breaking changes. Only old framework versions were removed to make further development easier. The API is the same (with new additions) as in v1.

Added

  • Added Append(Rune) overload
  • Added AppendJoin(Rune, IEnumerable<string?>) overload
  • Added AppendJoin<T>(Rune, IEnumerable<T>) overload

Removed

  • Support for net6.0 and net7.0 was removed.

Changed

  • Added OverloadResolutionPriority for Span overload for the ctor to keep the current behavior. Reported by [@nsentinel])(https://github.com/nsentinel) in #210.
  • Optimised AppendLine(scoped ReadOnlySpan<char>) by avoiding allocating a new string
  • Removed erroneous null check in AppendJoin<T>(ReadOnlySpan<char>, IEnumerable<T>)

v1.22.0

18 Dec 17:06
Compare
Choose a tag to compare

Added

  • AppendSpan method

v1.21.1

08 Nov 21:59
9442bdf
Compare
Choose a tag to compare

Changed

  • Append(bool) is now 33% faster

v1.21.0

20 Sep 07:18
b71ea72
Compare
Choose a tag to compare

Added

  • PadLeft and PadRight methods

v1.20.0

02 May 17:36
4084d05
Compare
Choose a tag to compare

Added

  • New ctor that accepts an initial size

v1.19.1

19 Apr 19:35
9d773b2
Compare
Choose a tag to compare

Changed

  • Some smaller refactorings

v1.19.0

02 Mar 12:35
ae63be0
Compare
Choose a tag to compare
Test for adding to TypedSpanList

v1.18.6

03 Nov 14:08
d5c091c
Compare
Choose a tag to compare

Changed

  • Dispose resets the ValueStringBuilder to the initial state, so it doesn't lead to undefined behavior when used again
  • Use different approach for Grow to be a bit more performant

v1.18.5

19 Oct 18:13
5662202
Compare
Choose a tag to compare

Changed

  • Fixed a bug, where in Append overflows the internal buffer and throws an exception
  • Use better struct layout to be more cache friendly

v1.18.4

14 Oct 11:09
3e3d136
Compare
Choose a tag to compare

Changed

  • Optimized Append(scoped ReadOnlySpan<char>) to be roughly 5% faster
  • Optimized AppendLine to have less overhead