[darcs-devel] possible source of slowness when applying patches

Jason Dagit dagit at codersbase.com
Tue Apr 24 21:26:17 PDT 2007


Hello,

Recently, I went to update my copy of darcs-unstable which had been
dormant for several months.  Fetching the patches went fine, but
applying the patches was taking ages.  After about 30 minutes I
canceled because I figured getting from scratch would be faster.  I
was right.  After looking at some of the changes to darcs-unstable
over that period I have a hypothesis (which needs testing) as to why
apply was so slow:

Darcs wanted to apply patches to files, but the files had been
moved/renamed (now that the source is in src/ (nice improvement, by
the way!)) so it had to do some sort of calculations and patch
inspection to figure out which files to really apply the patches to.
Can anyone comment on this?  Perhaps someone else could even look into
this and test the hypothesis?  I'm thinking it should be pretty easy
to craft some test cases to check for situations like this.

Thanks,
Jason


More information about the darcs-devel mailing list