sapling/eden/mononoke/reachabilityindex/skiplist/Cargo.toml
Stanislau Hlebik 8ff0c411cc mononoke: yield if we do a lot of skips in skiplist
Summary:
During expensive getbundle request traversing skiplist uses a lot of cpu, and
in fact it's blocking the whole CPU. krallin suggested to yield since it
should avoid blocking cpus, and that's what this diff is doing.

Reviewed By: krallin

Differential Revision: D22160477

fbshipit-source-id: 5bd881d5c50f4d8e64f2cc90389abc8568ec1df6
2020-06-22 09:20:40 -07:00

41 lines
1.5 KiB
TOML

[package]
name = "skiplist"
edition = "2018"
version = "0.1.0"
authors = ['Facebook']
license = "GPLv2+"
include = ["src/**/*.rs"]
[dependencies]
blobstore = { path = "../../blobstore" }
changeset_fetcher = { path = "../../blobrepo/changeset_fetcher" }
common = { path = "../common" }
context = { path = "../../server/context" }
mononoke_types = { path = "../../mononoke_types" }
reachabilityindex = { path = ".." }
skiplist-thrift = { path = "../if" }
tunables = { path = "../../tunables" }
cloned = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
fbthrift = { git = "https://github.com/facebook/fbthrift.git", branch = "master" }
anyhow = "1.0"
async-trait = "0.1.29"
bytes = { version = "0.5", features = ["serde"] }
chashmap = "2.2"
futures = { version = "0.3", features = ["async-await", "compat"] }
futures-util = "0.3"
maplit = "1.0"
slog = { version = "2.5", features = ["max_level_debug"] }
tokio = { version = "=0.2.13", features = ["full"] }
[dev-dependencies]
blobrepo = { path = "../../blobrepo" }
bookmarks = { path = "../../bookmarks" }
fixtures = { path = "../../tests/fixtures" }
revset = { path = "../../revset" }
test-helpers = { path = "../test-helpers" }
async_unit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
futures_ext = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
futures-old = { package = "futures", version = "0.1" }
tokio-compat = "0.1"