Skip to content

Commit 8d28076

Browse files
committed
docs: add heap grows rate description to README
1 parent 7490e6c commit 8d28076

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Compact, clone-on-write string.
1919
- When a `LeanString` is cloned, the heap buffer is shared.
2020
- When a `LeanString` is mutated, the heap buffer is copied if it is shared.
2121
- `O(1)`, zero allocation construction from `&'static str`.
22+
- Heap based string grows at a rate of 1.5x
23+
- The std library String grows at a rate of 2x
2224
- Nich optimized for `Option<LeanString>`.
2325
- `size_of::<Option<LeanString>>() == size_of::<LeanString>()`
2426
- High API compatibility for `String`.

0 commit comments

Comments
 (0)