Subject: Re: Meta package for pkgsrc developer tools
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.org>
From: Greg A. Woods <firstname.lastname@example.org>
Date: 08/12/2006 15:57:02
Content-Type: text/plain; charset=US-ASCII
At Fri, 11 Aug 2006 18:26:55 +0100,
David Laight wrote:
> On Mon, Aug 07, 2006 at 07:42:21PM -0400, Greg A. Woods wrote:
> > 19:20  $ time sh -c 'echo */*/work > /dev/null'
> > 0.04s real 0.01s user 0.02s system
> > 19:21  $ time find . -name work -print > /dev/null
> > 37.76s real 0.37s user 2.17s system
> > 19:23  $ time find . \( -name CVS -prune \) -o \( -name work -print \) > /dev/null
> > 25.98s real 0.21s user 1.10s system
> The one that you want is:
> $ time find . -name CVS -prune -o -name work -print -prune
> pruning after printing stops the descent into the 'work' directories.
Ah, yes, of course! Thanks for that most important correction!
(not having anything within my work directories, since the objects in my
pkgsrc tree are actually all symlinks, didn't help me to see that they
would still have been decended into!)
Too bad (for simple name-compare-only "find" expressions anyway) that
directory files don't contain a flag bit which would identify files
which are themselves sub-directories. Then maybe the "find" example
could have a run time that was a bit closer to the shell glob example.
Greg A. Woods
H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <email@example.com>
Planix, Inc. <firstname.lastname@example.org> Secrets of the Weird <email@example.com>
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
-----END PGP SIGNATURE-----