[ANN] a thin wrapper for Mercurial command server

Idan Kamara idankk86 at gmail.com
Sun Dec 18 16:23:16 UTC 2011


On Sun, Dec 18, 2011 at 5:56 PM, Yuya Nishihara <yuya at tcha.org> wrote:
>
> Hi,
>
> I made a little C program which acts like a 'hg' command by communicating
> with Mercurial command server.

Very nice stuff. Going to play with this!

>
>
> It spawns monky-patched command server as a background daemon, and
> communicate with it via unix domain socket. Thanks to the running

I haven't gone over everything yet but I think some of
those changes have a place in core, or at least a discussion on
how to eliminate the monkey patching.

> 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
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111218/32e4d82d/attachment-0002.html>


More information about the Mercurial mailing list