Skip to content

Commit da1ea35

Browse files
committed
Low level performance improvements and updates
- Update nix with my PRs: nix-rust/nix#1656, nix-rust/nix#1655 - Use raw pointer manipulation to extract name cache values - Use a faster rand implementation with better statistical guarantees - Tune the task queue capacity and consumption rate and get rid of copies in drain (by using a VecDeque) Signed-off-by: Alex Saveau <[email protected]>
1 parent 0231094 commit da1ea35

File tree

4 files changed

+62
-123
lines changed

4 files changed

+62
-123
lines changed

Cargo.lock

Lines changed: 46 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ exitcode = "1.1.2"
2121
log = "0.4.14"
2222
num-format = { version = "0.4.0", features = ["with-system-locale"] }
2323
num_cpus = "1.13.1"
24-
rand = "0.8.4"
24+
rand = { version = "0.8.4", features = ["simd_support"] }
2525
rand_distr = "0.4.3"
26-
rand_xorshift = "0.3.0"
26+
rand_xoshiro = "0.6.0"
2727
simple_logger = { version = "1.16.0", default-features = false, features = ["colors"] }
28-
tokio = { version = "1.15.0", features = ["full"] }
28+
tokio = { version = "1.15.0", features = ["rt", "parking_lot"] }
2929

3030
[target.'cfg(target_os = "linux")'.dependencies]
31-
nix = "0.23.1"
31+
nix = { path = "/home/asaveau/Desktop/nix", default-features = false, features = ["fs"] }
3232

3333
[dev-dependencies]
3434
criterion = "0.3.5"

0 commit comments

Comments
 (0)