Date: Tue, 8 Nov 2011 15:25:07 -0700 From: Warner Losh <imp@bsdimp.com> To: Alexander Best <arundel@freebsd.org> Cc: freebsd-toolchain@freebsd.org, Dimitry Andric <dim@freebsd.org> Subject: Re: make cleanworld Message-ID: <03A12F28-FC6A-479F-9F94-A12E3D7EEE1F@bsdimp.com> In-Reply-To: <20111108215549.GA44260@freebsd.org> References: <20111108204912.GA34155@freebsd.org> <4EB9A268.5020805@FreeBSD.org> <20111108215549.GA44260@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 8, 2011, at 2:55 PM, Alexander Best wrote: > find -flags +XXX /usr/obj/usr/git-freebsd-head -exec chflags -R 0 {} + > rm/obj/usr/git-freebsd-head/* >=20 > that should only execute chflags(1) on those files with flags set. THat's only faster if the entire directory tree says in the directory = cache. It isn't so much about chflags being called N times, but having = to look at N files twice. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03A12F28-FC6A-479F-9F94-A12E3D7EEE1F>