This repository was archived by the owner on Nov 9, 2025. It is now read-only.

Description
SmolStrBuilder will allocate at least twice when building a len > 23 SmolStr.
- When upgrading
SmolStrBuilder(Inline) -> SmolStrBuilder(Heap).
- On
SmolStrBuilder::finish when constructing SmolStr(Heap) (because String -> Arc<str> requires this).
Ideally it would only allocate once in this case as with using String.