sapling/eden/scm/lib/revisionstore
Jun Wu 6956496602 lib: bytes::Bytes -> minibytes::Bytes
Summary:
The `bytes` crate still does not support zero-copy on mmaped buffer.
Switch to `minibytes::Bytes` so bytes returned from our main storage
backend indexedlog is a zero-copy slice backed by a mmap buffer.

Migrate vfs, revisionstore, pyworker to minibytes so they can preserve
zero-copy mmap buffers from indexedlog.

The edenapi/types is unchanged, since it's also used in Mononoke which uses
`bytes::Bytes` all the places. The conversion to `minibytes::Bytes` is cheap
so it's probably not a performance issue.

Reviewed By: kulshrax

Differential Revision: D26218289

fbshipit-source-id: e4f1c631143b7676c6b48d3b4f97055299bfd334
2021-02-03 20:22:32 -08:00
..
src lib: bytes::Bytes -> minibytes::Bytes 2021-02-03 20:22:32 -08:00
types edenapi: Hide edenapi wire types from externally visible API 2020-09-23 17:27:08 -07:00
Cargo.toml lib: bytes::Bytes -> minibytes::Bytes 2021-02-03 20:22:32 -08:00