Andrew Morton writes:
> 
> On a dual 2.7GHz power4, the cvs client has racked up an hour of CPU time
> so far.  There's something in there which is quadratic (or worse) in the
> number of files in a directory.

Yes, the fix for a release problem that Derek made a year ago
(2004-02-25) is responsible for this behavior.  Prior to that fix, CVS
would cache the Entries for a directory so that it wouldn't have to read
(and possibly rewrite) the Entries file for each file being processed. 
Unfortunately, it sometimes changed to a different directory without
flushing the cache, resulting in one directory's Entries ending up in a
different directory.  Derek's fix removed the cache, so each new file
being checked out ends up reading the Entries file, adding the new file,
and then writing it back out, which is indeed quadratic behavior.  We
need to figure out a way to restore the cache without reintroducing the
original problem, a non-trivial task.

-Larry Jones

He piqued my curiosity. -- Calvin


_______________________________________________
Bug-cvs mailing list
Bug-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-cvs

Reply via email to