##// END OF EJS Templates
bdiff: write a native version of splitnewlines...
bdiff: write a native version of splitnewlines ./hg perfunidiff mercurial/manifest.py 0 --count 500 --profile before: ! wall 0.309280 comb 0.350000 user 0.290000 sys 0.060000 (best of 32) ./hg perfunidiff mercurial/manifest.py 0 --count 500 --profile after: ! wall 0.241572 comb 0.260000 user 0.240000 sys 0.020000 (best of 39) so it's about 20% faster. I hate Python. I wish we could usefully write this in Rust, but it doesn't look like that's realistic without using the cpython crate, which I'd still like to avoid. Differential Revision: https://phab.mercurial-scm.org/D1973

File last commit:

r29357:66d41c9e default
r36163:29dd37a4 default
Show More
README
32 lines | 926 B | text/plain | TextLexer
Yuya Nishihara
chg: import frontend sources...
r28060 cHg
===
A fast client for Mercurial command server running on Unix.
Install:
$ make
$ make install
Usage:
$ chg help # show help of Mercurial
$ alias hg=chg # replace hg command
$ chg --kill-chg-daemon # terminate background server
Environment variables:
Although cHg tries to update environment variables, some of them cannot be
changed after spawning the server. The following variables are specially
handled:
Jun Wu
chg: remove manual reload logic...
r28454 * configuration files are reloaded automatically by default.
Yuya Nishihara
chg: import frontend sources...
r28060 * CHGHG or HG specifies the path to the hg executable spawned as the
background command server.
The following variables are available for testing:
* CHGDEBUG enables debug messages.
* CHGSOCKNAME specifies the socket path of the background cmdserver.
Jun Wu
chg: make timeout adjustable...
r29345 * CHGTIMEOUT specifies how many seconds chg will wait before giving up
Jun Wu
chg: change default connect timeout to 60 seconds...
r29357 connecting to a cmdserver. If it is 0, chg will wait forever. Default: 60