darcs performance

Sven Panne sven.panne at aedion.de
Sun Apr 1 07:23:32 EDT 2007


[ Well, not exactly a GHC problem, but I think that the mailing list fits, 
anyway. ]

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):

-------------------------------------------------------------------------------------------------
panne at spock:~> time darcs get --complete http://darcs.haskell.org:/cpphs
Applying patch 189 of 189... done.
Finished getting.

real    0m50.998s
user    0m0.180s
sys     0m0.068s
panne at spock:~> rm -rf cpphs/
panne at spock:~> time darcs get --complete 
panne at darcs.haskell.org:/home/darcs/cpphs
Applying patch 189 of 189... done.
Finished getting.

real    4m22.311s
user    0m0.228s
sys     0m0.080s
-------------------------------------------------------------------------------------------------

The SSH protocol is a bit more complicated than HTTP, but not by a factor of 
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.

Cheers,
   S.



More information about the Cvs-ghc mailing list