[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating and removing and creating and removing....

From: Perry E. Metzger
Subject: Re: creating and removing and creating and removing....
Date: 02 Jul 2001 15:24:10 -0400

larry.jones@sdrc.com (Larry Jones) writes:
> Perry E. Metzger writes:
> > 
> > How hard would it be to make -d only create directories that need
> > creating while the tree is being walked (and not ones that will end up
> > empty) and have -P remove directories as the tree is being walked so
> > it doesn't have to walk the tree yet again?
> Very.  There really isn't any way to know in advance whether the
> directory is going to end up empty or not, so you'd either have to
> duplicate most of the work of checkout without really creating anything,
> or you'd have to arrange to defer all of the directory creation until
> the first file.

Well, it currently is wasting literally a half hour to an hour of disk
thrashing for a lot of people, and it will only get worse.

I would imagine the right approach is the latter -- deferring creation
until the first file would be checked out.

What code sections should I be looking at?

Perry E. Metzger                perry@wasabisystems.com
Quality NetBSD CDs, Support & Service. http://www.wasabisystems.com/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]