mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
6956496602
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |