From owner-freebsd-ports@FreeBSD.ORG Mon May 28 21:38: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 539DE16A46B; Mon, 28 May 2007 21:38:24 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id CA21313C4B0; Mon, 28 May 2007 21:38:23 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id C47238BD861; Mon, 28 May 2007 23:20:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EpxsXoLgWNl2; Mon, 28 May 2007 23:20:36 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 8C70B8BD84B; Mon, 28 May 2007 23:20:36 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l4SLKaqJ036060; Mon, 28 May 2007 23:20:36 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 28 May 2007 23:20:36 +0200 From: Roman Divacky To: Stephen Montgomery-Smith Message-ID: <20070528212036.GA35796@freebsd.org> References: <4659EF80.70100@math.missouri.edu> <20070527223048.GA37505@icarus.home.lan> <465B0490.7080203@math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <465B0490.7080203@math.missouri.edu> User-Agent: Mutt/1.4.2.2i Cc: ports@freebsd.org, 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 21:38:24 -0000 On Mon, May 28, 2007 at 11:34:24AM -0500, Stephen Montgomery-Smith wrote: > Jeremy Chadwick wrote: > >On Sun, May 27, 2007 at 03:52:16PM -0500, Stephen Montgomery-Smith wrote: > >> I have been thinking a lot about looking for speed increases for "make > >> index" and pkg_version and things like that. So for example, in > >> pkg_version, it calls "make -V PKGNAME" for every installed package. Now > >> "make -V PKGNAME" should be a speedy operation, but the make has to load > >> in and analyze bsd.port.mk, a quite complicated file with about 200,000 > >> characters in it, when all it is needing to do is to figure out the > >> value of the variable PKGNAME. > > > >I have a related question, pertaining to "make all-depends-list" and the > >utter atrocity that is the make variable ALL-DEPENDS-LIST. If you don't > >know what it is, look for ^ALL-DEPENDS-LIST around line 5175, in > >bsd.ports.mk. > > I posted this to ports@freebsd.org, but now I am realizing that it is > hackers@freebsd.org that gets more responses. Anyway, here is a > multithreaded program "all-depends-list" that can get you double the > speed on dual processor systems, and even some small speed gains on > single processor systems. E.g. > > all-depends-list /usr/ports/x11/xorg > > http://www.math.missouri.edu/~stephen/all-depends-list.c btw.. stehpen, when are you getting a commit bit? :) I certainly hope that soon enough ;) roman