Re: Speedup for make clean-depends (and thus make clean)

2007-06-18 Thread Alexander Leidinger
Quoting Alexander Leidinger [EMAIL PROTECTED] (from Tue, 22 May 2007 09:26:58 +0200): Quoting Jeremy Lea [EMAIL PROTECTED] (from Mon, 21 May 2007 15:28:16 -0700): Hi, On Mon, May 21, 2007 at 10:20:26AM +0200, Alexander Leidinger wrote: I tried to do the WRKDIR and _DEPEND_DIRS part in one

Re: Speedup for make clean-depends (and thus make clean)

2007-06-18 Thread Pav Lucistnik
Alexander Leidinger píše v po 18. 06. 2007 v 12:05 +0200: Quoting Alexander Leidinger [EMAIL PROTECTED] (from Tue, 22 May 2007 09:26:58 +0200): Quoting Jeremy Lea [EMAIL PROTECTED] (from Mon, 21 May 2007 15:28:16 -0700): Hi, On Mon, May 21, 2007 at 10:20:26AM +0200, Alexander

Re: Speedup for make clean-depends (and thus make clean)

2007-05-22 Thread Alexander Leidinger
Quoting Jeremy Lea [EMAIL PROTECTED] (from Mon, 21 May 2007 15:28:16 -0700): Hi, On Mon, May 21, 2007 at 10:20:26AM +0200, Alexander Leidinger wrote: I tried to do the WRKDIR and _DEPEND_DIRS part in one go myself, but it was slower than the patch I did post (in the case where all dirs are

Re: Speedup for make clean-depends (and thus make clean)

2007-05-21 Thread Alexander Leidinger
Quoting Yoshihiro Ota [EMAIL PROTECTED] (from Mon, 21 May 2007 00:12:38 -0400): This is the fastest one. It is about O(1) and takes a couple of seconds to delete files whether millions or billions. [using a FS just for WRKDIRs] Yes, without any doupt this is very fast. Unfortunately

Re: Speedup for make clean-depends (and thus make clean)

2007-05-21 Thread Jeremy Lea
Hi, On Mon, May 21, 2007 at 10:20:26AM +0200, Alexander Leidinger wrote: I tried to do the WRKDIR and _DEPEND_DIRS part in one go myself, but it was slower than the patch I did post (in the case where all dirs are already clean). But I did use another implementation, I did a set --

Speedup for make clean-depends (and thus make clean)

2007-05-20 Thread Alexander Leidinger
Hi, the attached patch speeds up make clean-depends in the case when not a lot of work directories exist (basic idea by Jeremy Lea). It does this by only including dirs in the cleaning where a WRKDIR exists. In the X.org 7.2 dependency tree case and a completely clean ports tree it is a speedup

Re: Speedup for make clean-depends (and thus make clean)

2007-05-20 Thread Doug Barton
Alexander Leidinger wrote: I could write such a new target, e.g. limited-clean, which could be used with update tools if there's some interest in something like this from the author of such a tool. Once again, I appreciate all the effort that's going into thinking about this stuff. :) For

Re: Speedup for make clean-depends (and thus make clean)

2007-05-20 Thread Yoshihiro Ota
This is the fastest one. It is about O(1) and takes a couple of seconds to delete files whether millions or billions. 1.) Set WRKDIRPREFIX like WRKDIRPREFIX=/ports in /etc/make.conf 2.) Give a device to it. It could be via mdconfig as well. For example, mount /dev/ad0s2c /ports 3.) Build