Skip to content

Releases: bodil/smartstring

0.2.1

04 Jul 12:58
v0.2.1
e25d4a0
Compare
Choose a tag to compare

FIXED

  • The type alias smartstring::alias::String was incorrectly pointing at the Compact variant. It is now pointing at LazyCompact, as the documentation describes.

0.2.0

04 Jul 11:32
v0.2.0
b68a296
Compare
Choose a tag to compare

REMOVED

  • The Prefixed variant has been removed, as it comes with significant code complexity for very dubious gains.

CHANGED

  • The type alias smartstring::alias::String now refers to LazyCompact instead of Compact, the idea being that the obvious drop-in replacement for String shouldn't have any unexpected performance differences, which Compact can have because it aggressively re-inlines strings to keep them as local as possible. LazyCompact instead heap allocates once when the string is in excess of the inline capacity and keeps the allocation from then on, so there are no surprises.

ADDED

  • There's a new layout variant, LazyCompact, which works like Compact except it never re-inlines strings once they have been moved to the heap.
  • As the alias String has changed, there is now a new type alias smartstring::alias::CompactString, referring to strings with Compact layout.

FIXED

  • Fixed a bug where SmartString::drain() would remove twice the drained content from the string.

0.1.0

15 May 20:47
0.1.0
Compare
Choose a tag to compare

Initial release.