Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 authored Jan 24, 2025
1 parent 447e6d8 commit 4a9f483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

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

Think of it as a specialized `Arc<[u8]>` that can be inlined (skip allocation for small values) and no weak count.

![Memory layout](./byteview.png)

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

```bash
cargo +nightly fuzz run fuzz_target_1
```
```

0 comments on commit 4a9f483

Please sign in to comment.