darcs performance

Ian Lynagh igloo at earth.li
Sun Apr 1 11:41:32 EDT 2007


On Sun, Apr 01, 2007 at 01:23:32PM +0200, Sven Panne wrote:
> 
> When getting a repo via HTTP, darcs seems to be *much* faster than via SSH. 
> Here as an example the cpphs repo, 3.7 patches per second vs. 0.7 patches per 
> second (almost unusable for large/old repos):
> 
> 5. :-( Is there a misconfiguration on my box or does this happen for other 
> people, too? I'm using darcs 1.0.8 on openSUSE 10.2 x86_64.

darcs over SSH is slower for me too.

I have

    pull no-set-default
    push no-set-default

in ~/.darcs/defaults, and then do

    darcs push da<tab>

which magically tab completes to, e.g.,

    darcs push darcs.haskell.org:/home/darcs/ghc

or

    darcs push .<tab>

to get, e.g.,

    darcs push ../../6.6-branch/ghc

If I just do darcs pull then it uses the default repo, i.e. the HTTP one
that I got originally.

The tab completion is based on the contents of _darcs/prefs/repos.
I think that it can be made to work with both bash and zsh. I don't
think I had to do anything special to set it up (on Debian).


Thanks
Ian



More information about the Cvs-ghc mailing list