Date: Sun, 25 Mar 2012 18:33:47 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@FreeBSD.org Subject: Re: _DEPENDS+= and make index speed Message-ID: <4F6F56FB.4030704@FreeBSD.org> In-Reply-To: <c96eefe5-9e60-4756-b4dc-b3c429326e71@blur> References: <c96eefe5-9e60-4756-b4dc-b3c429326e71@blur>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig736C26BEFC81B9353F3493B1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 25/03/2012 17:22, Michael Scheidell wrote: > I don't think it hurts anything but if you have a bunch of ports > doing this, doesn't it have to slow down make index? The extra check > for, reassign and cat an undefined var has to take more cpu than a > strict assign, right or am I just nitpicking? Unlikely to make a significant difference. Most of the time in building the INDEX is spent doing file IO -- opening all those Makefiles, and the files they include, etc., ad nauseam. -- and then parsing the thousands of lines of make code. And then doing all over again for the next port. Couple of assignments using +=3D in a couple of port specific Makefiles isn't much compared to that. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig736C26BEFC81B9353F3493B1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9vVwIACgkQ8Mjk52CukIxGXQCfVkpw8JmYyDLufOKWZ4/+Okuz wu8AnRBohtkP5dQEF9fLoRa2NhVzDkua =i0s8 -----END PGP SIGNATURE----- --------------enig736C26BEFC81B9353F3493B1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F6F56FB.4030704>