bytes/benches
Sean McArthur 43ac8e5494
Refactor Bytes to use an internal vtable (#298)
Bytes is a useful tool for managing multiple slices into the same region
of memory, and the other things it used to have been removed to reduce
complexity. The exact strategy for managing the multiple references is
no longer hard-coded, but instead backing by a customizable vtable.

- Removed ability to mutate the underlying memory from the `Bytes` type.
- Removed the "inline" (SBO) mechanism in `Bytes`. The reduces a large
  amount of complexity, and improves performance when accessing the
  slice of bytes, since a branch is no longer needed to check if the
  data is inline.
- Removed `Bytes` knowledge of `BytesMut` (`BytesMut` may grow that
  knowledge back at a future point.)
2019-10-16 09:53:36 -07:00
..
buf.rs Update Bytes to Rust 2018 (#274) 2019-07-26 05:01:22 +09:00
bytes.rs Refactor Bytes to use an internal vtable (#298) 2019-10-16 09:53:36 -07:00
bytes_mut.rs Refactor Bytes to use an internal vtable (#298) 2019-10-16 09:53:36 -07:00