Date: 21 Feb 2002 04:14:24 +0200 From: Maxim Sobolev <sobomax@FreeBSD.org> To: erik@smluc.org Cc: freebsd-ports@FreeBSD.org, lioux@FreeBSD.org Subject: Re: Speeding up bsd.ports.mk Message-ID: <1014257658.25330.2.camel@notebook> In-Reply-To: <20020220224029.22623.qmail@www.smluc.org> References: <20020220224029.22623.qmail@www.smluc.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-Z1flDiAwutX+nMfnFiH8 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2002-02-21 at 00:40, erik@smluc.org wrote: > Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> said: > > On Wed, Feb 20, 2002 at 09:04:25PM +0200, Maxim Sobolev wrote: > > > Hi folks, > > >=20 > > > Recently NetBSD team removed all .USE macros from their bsd.pkg.mk > > > (see http://mail-index.netbsd.org/tech-pkg/2001/11/08/0001.html) - > > > which should make operations (most notably dependency resolution and > > > registration) 3 times faster. What do people think about integrating > > > those changes into our bsd.port.mk? > >=20 > > Well, if it both makes it faster and does not break anything. :) > > I AM ALL FOR IT. :) >=20 > has anyone bothered exploring exactly why there was this huge speedup > and what about the .USE macro is so slow? it may be possible to > improve the performance without changing any of the makefiles, no? > Just because someone else did it doesn't necessarily mean it's right, mer= ely > worth further investigation :) Because the code in question invokes child makes like a mad. Each child when invoked have to parse huge bsd.port.mk and associated files, spawn many subshells to get environment (uname(1) and friends) and so on, which obviously takes a lot of CPU time. I'm currently making a good progress in tweaking our own bsd.port.mk - so far I got decrease of the build system overhead by 75% (now it 4 times less than was before). I'm testing it using very basic "empty" port, do dozen `make all clean' invocations and measure the time it takes to complete the run. I hope to get a patch for review/testing tomorrow. Stay tuned. :) -Maxim --=-Z1flDiAwutX+nMfnFiH8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQA8dFf4oNu5t4iCBa8RAoRmAJ96mvBu/J4+GxAkkmJF0FP7WzKVjACeIKAh HvnHC82t2CCrwZvmMAyWQ+I= =Tcqr -----END PGP SIGNATURE----- --=-Z1flDiAwutX+nMfnFiH8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1014257658.25330.2.camel>