Date: Fri, 6 Feb 2004 18:55:30 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Bruce Evans <bde@zeta.org.au> Cc: current@FreeBSD.org Subject: Re: Very long SRCS list with unusually long src/ prefix Message-ID: <20040206165530.GG29305@FreeBSD.org.ua> In-Reply-To: <20040206153150.J14249@gamplex.bde.org> References: <20040205091634.GC13932@FreeBSD.org.ua> <20040206012805.N8113@gamplex.bde.org> <20040205151425.GA18523@FreeBSD.org.ua> <20040206030956.F11456@gamplex.bde.org> <20040205190906.GD20227@FreeBSD.org.ua> <20040206153150.J14249@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--VbfcI4OLZ4XW0yH2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 06, 2004 at 03:52:44PM +1100, Bruce Evans wrote: [...] > > > That is slow too. I get 12.12 seconds with make, 2.36 with make -j1, > > > 1.37 with a shell loop and bash-1, 1.35 with a shell loop and /bin/sh, > > > and 0.0042 with jot 1000 >/dev/null. > > > > > Shell loops aren't an option here. I realize that we loose speed here, > > but we gain a feature. >=20 > Ah, but I always choose speed over features (except reverse creeping ones= ) :-). >=20 Sorry, I meant "but we fix a bug". > 0.18 seconds in bin/cat is huge. >=20 Yep, given that most people don't need it. Do you have an idea of how to do it properly, as even making heuristics on the number of source files to select the "make depend" algorithm doesn't seem right to me? Perhaps in the meantime, I should just add an undocumented knob, _SAFE_MKDEP (please suggest a better name), and provide both versions of "make depend", with the old version as default? > A null "make depend" is when .depend is not stale (an maybe all > relevant disk blocks are cached). >=20 A null "make depend" is not affected by this change. > > Yes, but ``grep ^MKDEPCMD bsd.dep.mk'' to see what I'm talking > > about. >=20 > I know. MKDEPCMD should be put in the environment before execing > xargs instead of after to avoid the env process. It seems to the > only thing that needs to be put in the environment here. See the > similar cleanup in kern.post.mk. >=20 Please see my other message with the patch that splits environment variables from command name. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --VbfcI4OLZ4XW0yH2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAI8cCUkv4P6juNwoRAmHeAJ498dPUExMEr88G6Eh5JREA8aBeQACfTdtQ r+WL4MIs3+rEEzQUoDDMkWs= =5NF+ -----END PGP SIGNATURE----- --VbfcI4OLZ4XW0yH2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040206165530.GG29305>