rust/chg/Cargo.toml
author Yuya Nishihara <yuya@tcha.org>
Wed, 31 Oct 2018 22:43:08 +0900
changeset 41009 dcac24ec935b
parent 40287 7623199def92
child 44670 1c385b99a360
permissions -rw-r--r--
commandserver: preload repository in master server and reuse its file cache This greatly speeds up repository operation with lots of obsolete markers: $ ls -lh .hg/store/obsstore -rw-r--r-- 1 yuya yuya 21M Dec 2 17:55 .hg/store/obsstore $ time hg log -G -l10 --pager no (hg) 1.79s user 0.13s system 99% cpu 1.919 total (chg uncached) 0.00s user 0.01s system 0% cpu 1.328 total (chg cached) 0.00s user 0.00s system 3% cpu 0.180 total As you can see, the implementation of the preloader function is highly experimental. It works, but I'm yet to be sure how things can be organized. So I don't want to formalize the API at this point.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39968
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     1
[package]
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     2
name = "chg"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     3
version = "0.1.0"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     4
authors = ["Yuya Nishihara <yuya@tcha.org>"]
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     5
description = "Client for Mercurial command server with cHg extension"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     6
license = "GPL-2.0+"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     7
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     8
[dependencies]
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
     9
bytes = "0.4"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    10
futures = "0.1"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    11
libc = "0.2"
40287
7623199def92 rust-chg: depend on log and tokio_timer
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
    12
log = { version = "0.4", features = ["std"] }
39968
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    13
tokio = "0.1"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    14
tokio-hglib = "0.2"
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    15
# TODO: "^0.2.3" once released. we need AsRawFd support.
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    16
tokio-process = { git = "https://github.com/alexcrichton/tokio-process" }
40287
7623199def92 rust-chg: depend on log and tokio_timer
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
    17
tokio-timer = "0.2"
39968
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    18
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    19
[build-dependencies]
aab43d5861bb rust-chg: add project skeleton
Yuya Nishihara <yuya@tcha.org>
parents:
diff changeset
    20
cc = "1.0"