Alan Bram wrote:
> I recently started trying to use darcs2, after having used darcs1 for
> a year or so.  I work on a fairly big repo: about 45 megabytes in
> about 3500 files, in about 300 directories.

3500 files in 300 directories?  Wow.

Does this repository happen to be publicly shared or could this 
repository be publicly shared?  Darcs is looking for "benchmark" 
repositories for performance testing and particularly performance 
regression testing.

> With the occasional exceptional meltdown, darcs1 performance was
> always pretty reasonable.  Now, with darcs2 it seems to have become
> horrible.
> 
> I have enabled a global cache, according to the instructions in the
> fine manual.
> 
> As an experiment, I created a new repo with "darcs init --darcs-2",
> and then simply imported the latest versions of all of the files and
> directories.  In other words, no history: this new repo has exactly
> one patch in it.
> 
> Now "darcs changes" takes around 5 seconds.  Gosh; just to list one
> change?!

Even darcs 1 has always had the "initial import problem" where very 
large patches, generally created in a bulk initial import of an entire 
large directory structure, cause havoc.  My guess is that this exactly 
the problem you see here, but I'm not sure how much it affects the other 
things you mention.

A better experiment is to try:

darcs get --hashed current-repository hashed-repository

This will get a copy in hashed format and you can push/pull patches 
between your current-repository and hashed-repository.

A deeper experiment would be to try:

darcs convert current-repository darcs2-repository

> Yikes!  Am I doing something obviously wrong here?  I really love
> darcs, but I don't see how I can live with this sort of performance.

Performance is the big thing on the immediate roadmap and every little 
user report helps.  Try my suggestions above and see if those help 
diminish the performance problems you have been seeing.

--
--Max Battcher--
http://www.worldmaker.net/
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to