On Thu, Aug 14, 2008 at 9:42 AM, Alan Bram <[EMAIL PROTECTED]> wrote:

> Hi,
>
> 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.
>
> 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.


Good, but I don't think that will help much unless you're getting the same
remote repositories repeatedly.



>
> 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.


Presumably you want the history though right?  Did you do it this way just
as a benchmark test?


>
>
> Now "darcs changes" takes around 5 seconds.  Gosh; just to list one
> change?!


Hmm...That's not so good.


>
> Now I go make a sample change to one file: I add 3 lines.  Now "darcs
> whatsnew" takes 7 seconds.


We've identified an issue with some versions of GHC producing darcs binaries
that are really slow at whatsnew.  It seems that ghc 6.6.x and ghc 6.8.3 are
not affect.  Specifically, ghc 6.8.2 seems to generate the slow darcs on
several platforms.  It would be good if we could rule out this possibility.


>
>
> On my old repo, using darcs1, I could run "darcs whatsnew" in 0.1
> seconds (once the file system cache is warm) (on a more typical set of
> changes: 50 lines or so).
>
> 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.


I think the recommended way to get a darcs2 repository would be to use the
'darcs convert' command.  Have you tried this, and if so, is it better?
worse? about the same?

This is a case that the GHC dev team had identified too and we're working on
it.  Thanks for the feedback!

Thanks,
Jason
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to