Skip to content

Commit 7a42f80

Browse files
committed
Auto merge of #2418 - alexcrichton:update-git2, r=alexcrichton
This crate was recently updated to the next release of libgit2, and I've noticed historically that a noop `cargo build` was slow in the git2-rs repository. Curious to see if the new libgit2 version helped speed things up at all, I tested it out. Before this commit, a noop `cargo build` produced 599108 syscalls. After this commit, a noop build produced 86925 syscalls, an 85% reduction in the number of syscalls! Needless to say it's much faster.
2 parents 3efd44b + 333ba43 commit 7a42f80

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ docopt = "0.6"
2525
env_logger = "0.3"
2626
filetime = "0.1"
2727
flate2 = "0.2"
28-
git2 = "0.3"
29-
git2-curl = "0.3"
28+
git2 = "0.4"
29+
git2-curl = "0.4"
3030
glob = "0.2"
3131
kernel32-sys = "0.2"
3232
libc = "0.2"
33-
libgit2-sys = "0.3"
33+
libgit2-sys = "0.4"
3434
log = "0.3"
3535
num_cpus = "0.2"
3636
regex = "0.1"

0 commit comments

Comments
 (0)