[ANN] a thin wrapper for Mercurial command server

Yuya Nishihara yuya at tcha.org
Sun Dec 18 15:56:31 UTC 2011


Hi,

I made a little C program which acts like a 'hg' command by communicating
with Mercurial command server.

It spawns monky-patched command server as a background daemon, and
communicate with it via unix domain socket. Thanks to the running
server, it saves about 50-100msec on each command exection:

  (LANG=C)
  % time hg stat
  hg stat  0.11s user 0.04s system 95% cpu 0.155 total

  % time chg stat
  chg stat  0.00s user 0.00s system 0% cpu 0.090 total

  (LANG=ja_JP.utf-8)
  % time hg stat
  hg stat  0.16s user 0.03s system 96% cpu 0.195 total

  % time chg stat
  chg stat  0.00s user 0.00s system 0% cpu 0.105 total

cHg is available at:
https://bitbucket.org/yuja/chg/

Regards,
Yuya



More information about the Mercurial mailing list