From owner-freebsd-ports Wed Feb 20 18:14:41 2002 Delivered-To: freebsd-ports@freebsd.org Received: from alcatraz.iptelecom.net.ua (alcatraz.iptelecom.net.ua [212.9.224.15]) by hub.freebsd.org (Postfix) with ESMTP id 17DF537B402; Wed, 20 Feb 2002 18:14:33 -0800 (PST) Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by alcatraz.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id EAA94134; Thu, 21 Feb 2002 04:14:28 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from h118.229.dialup.iptcom.net (h118.229.dialup.iptcom.net [212.9.229.118]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id EAA05399; Thu, 21 Feb 2002 04:14:24 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Subject: Re: Speeding up bsd.ports.mk From: Maxim Sobolev To: erik@smluc.org Cc: freebsd-ports@FreeBSD.org, lioux@FreeBSD.org In-Reply-To: <20020220224029.22623.qmail@www.smluc.org> References: <20020220224029.22623.qmail@www.smluc.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Z1flDiAwutX+nMfnFiH8" Message-Id: <1014257658.25330.2.camel@notebook> Mime-Version: 1.0 X-Mailer: Evolution/1.0.2 Date: 21 Feb 2002 04:14:24 +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=-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 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