No description
Find a file
2026-02-27 21:46:36 +01:00
benches Set Rust version and add schematics 2026-02-27 10:25:54 +01:00
src Set Rust version and add schematics 2026-02-27 10:25:54 +01:00
.gitignore Initial commit 2026-02-22 14:02:56 +01:00
blog-post-understanding-bytes.iml Add benchmark 2026-02-22 15:32:59 +01:00
Cargo.lock Improve tracking message 2026-02-23 11:58:31 +01:00
Cargo.toml Improve tracking message 2026-02-23 11:58:31 +01:00
README.md Add instructions on how to run 2026-02-27 21:46:36 +01:00
rust-toolchain Set Rust version and add schematics 2026-02-27 10:25:54 +01:00
schematics.excalidraw Prepare for publication 2026-02-27 13:49:10 +01:00

Blog post: Understanding Bytes in Rust

This code is used in the post https://sitegui.dev/post/2026/understanding-bytes-in-rust-one-bit-at-a-time, where I investigate the behavior of the bytes::Bytes struct.

To run with memory tracking:

RUST_BACKTRACE=1 cargo test --all-features -- --nocapture

To run the benchmark:

cargo bench