From owner-freebsd-ports@FreeBSD.ORG Mon May 28 18:43:34 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 9B6F016A481; Mon, 28 May 2007 18:43:34 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 7795C13C44B; Mon, 28 May 2007 18:43:34 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4SIhWcV011933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 28 May 2007 11:43:32 -0700 X-Auth-Received: from [192.168.10.45] (c-67-166-149-71.hsd1.ca.comcast.net [67.166.149.71]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4SIhVqE008014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 28 May 2007 11:43:31 -0700 Message-ID: <465B22D0.8070907@u.washington.edu> Date: Mon, 28 May 2007 11:43:28 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Mike Meyer References: <4659EF80.70100@math.missouri.edu> <465AB421.10802@dlr.de> <18011.6019.436391.128372@bhuda.mired.org> <465B1BE1.7010208@u.washington.edu> In-Reply-To: <465B1BE1.7010208@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.28.112535 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: ports@freebsd.org, Hartmut Brandt , hackers@freebsd.org Subject: Re: Looking for speed increases in "make index" and pkg_version for 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: Mon, 28 May 2007 18:43:34 -0000 Garrett Cooper wrote: > Mike Meyer wrote: >> In <465AB421.10802@dlr.de>, Hartmut Brandt typed: >>> 1. make and its sub-makes for a) reading the file; b) parsing the file >>> (note that .if and .for processing is done while parsing); c) processing >>> targets. >> >> Make and submakes have been gone over already. See > http://miller.emu.id.au/pmiller/books/rmch/ >. >> >> I'm not sure it can be applied to the ports tree, though. I haven't >> looked into it, but recalled this paper when you mentioned measuring >> makes and sub-makes. >> >> > Reducing the number of variables will certainly cut down on the amount > of overhead in the make/submake context switches by a long shot. > > Maybe someone should consider running a 'pre-make' using the .mk files, > find the variables of interest for all particular sub-ports, and then > carry on the 'root make', i.e. make process in each port directory, with > just the variables of interest. > > -Garrett s/long shot/possibly a lot/g Also, I was thinking in particular of the X.Org 7.2 packages, because the bulk majority of the packages are smaller, and compile in a short amount of time. -Garrett