This repository was archived by the owner on Nov 1, 2026. It is now read-only.
Repository navigation
0.2.0
REMOVED
- The
Prefixedvariant has been removed, as it comes with significant code complexity for very dubious gains.
CHANGED
- The type alias
smartstring::alias::Stringnow refers toLazyCompactinstead ofCompact, the idea being that the obvious drop-in replacement forStringshouldn't have any unexpected performance differences, whichCompactcan have because it aggressively re-inlines strings to keep them as local as possible.LazyCompactinstead 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 likeCompactexcept it never re-inlines strings once they have been moved to the heap. - As the alias
Stringhas changed, there is now a new type aliassmartstring::alias::CompactString, referring to strings withCompactlayout.
FIXED
- Fixed a bug where
SmartString::drain()would remove twice the drained content from the string.