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
25 lines
768 B
TOML
25 lines
768 B
TOML
# @generated by autocargo from //eden/scm/lib/hgcommits:hgcommits
|
|
[package]
|
|
name = "hgcommits"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
include = ["src/**/*.rs"]
|
|
|
|
[dependencies]
|
|
dag = { path = "../dag", features = ["for-tests", "indexedlog-backend"] }
|
|
edenapi = { path = "../edenapi" }
|
|
gitdag = { path = "../dag/gitdag" }
|
|
metalog = { path = "../metalog" }
|
|
minibytes = { path = "../minibytes", features = ["frombytes"] }
|
|
revlogindex = { path = "../revlogindex" }
|
|
streams = { path = "../streams" }
|
|
zstore = { path = "../zstore" }
|
|
anyhow = "1.0"
|
|
async-trait = "0.1.29"
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
parking_lot = "0.10.2"
|
|
serde = { version = "1.0", features = ["derive", "rc"] }
|
|
thiserror = "1.0"
|
|
tracing = "0.1"
|
|
tracing-futures = "0.2"
|