From owner-freebsd-ports@FreeBSD.ORG Tue May 22 14:27:24 2007 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B985A16A468 for ; Tue, 22 May 2007 14:27:24 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (math.missouri.edu [128.206.184.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7C00F13C487 for ; Tue, 22 May 2007 14:27:24 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from [128.206.184.213] (cauchy.math.missouri.edu [128.206.184.213]) by math.missouri.edu (8.13.1/8.13.1) with ESMTP id l4MERMWm010789; Tue, 22 May 2007 09:27:23 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <4652FDCA.2000305@math.missouri.edu> Date: Tue, 22 May 2007 09:27:22 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070505 SeaMonkey/1.1.1 MIME-Version: 1.0 To: Alexander Leidinger References: <465291FB.4010901@math.missouri.edu> <20070522071941.GB59910@xor.obsecurity.org> <20070522110359.dwce59oaowkc400o@webmail.leidinger.net> <4652EC0C.8030604@math.missouri.edu> <20070522161418.qu03u60iogsgsog4@webmail.leidinger.net> In-Reply-To: <20070522161418.qu03u60iogsgsog4@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/3281/Tue May 22 03:50:43 2007 on math.missouri.edu X-Virus-Status: Clean Cc: ports@FreeBSD.org, Andrew Pantyukhin , Kris Kennaway Subject: Re: More speed increases for make-ing ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 14:27:24 -0000 Alexander Leidinger wrote: > Quoting Andrew Pantyukhin (from Tue, 22 May > 2007 17:34:32 +0400): > >> On 5/22/07, Stephen Montgomery-Smith wrote: > >>> Incidently if you want to save a few more != assignments, I notice that >>> setting the variables >>> ARCH=i386 >>> OPSYS=FreeBSD >>> OSREL=6.2 >>> OSVERSION=602110 >>> in /etc/make.conf will do this for you. >> >> A seemingly better way may be to make these system vars >> available in make by default. They may even be compiled >> in - to achieve virtually no performance impact (except >> for a bit larger default var table). > > OPSYS can be made static (cvs commit to bsd.port.mk). Before embarking on plans to implement it this way or that, how about some reports on whether this saves much time. My initial profiling indicates that for an individual make, it might save a few tenths of a second, but when you do a whole bunch of makes in a row (like in pkg_version), somehow the run of things like "uname -p" gets cached, and it turns into a few hundreths of a second per make. I might also add that the OSVERSION (which is the result of awk) seems to be very quick compared to the invokations of uname (which is what the others are). In other words, the time savings might just not be that worthwhile pursuing. Stephen