Running multiple commands on commandserver interface

Matt Mackall mpm at selenic.com
Thu Apr 12 15:55:26 UTC 2012


On Thu, 2012-04-12 at 17:33 +0200, Ton Plomp wrote:
> Yes Idan,
> 
> removing the null byte on the client side did fix the issue!
> 
> For timing info I ran 100 hg version, versus 100 times version on the hg
> commandserver:
> Pipe: 4,1 seconds
> CLI: 15 seconds

Hmm, that's a lot slower than I would have hoped. It runs about 10x
faster here (100 loops .5 seconds with python-hglib), but it seems to
still be doing a bunch of unnecessary work on each call. strace suggests
it's rereading hgrc files and checking dirstate.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list