Skip to content

Commit 4a9f483

Browse files
authored
Update README.md
1 parent 447e6d8 commit 4a9f483

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
An immutable byte slice that may be inlined, and can be partially cloned without heap allocation.
1010

11+
Think of it as a specialized `Arc<[u8]>` that can be inlined (skip allocation for small values) and no weak count.
12+
1113
![Memory layout](./byteview.png)
1214

1315
`byteview` was designed to speed up deserialization in `lsm-tree`, allow inlining of small values and reduce memory usage compared to Arc'd slices.
@@ -61,4 +63,4 @@ Allocating 500k `"helloworld".repeat(1000)` (len=10'000) strings:
6163

6264
```bash
6365
cargo +nightly fuzz run fuzz_target_1
64-
```
66+
```

0 commit comments

Comments
 (0)