From owner-freebsd-ports@FreeBSD.ORG Tue May 29 01:46: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 2103516A51D for ; Tue, 29 May 2007 01:46:24 +0000 (UTC) (envelope-from bland@FreeBSD.org) Received: from smtp1.jp.viruscheck.net (smtp1.jp.viruscheck.net [154.33.69.52]) by mx1.freebsd.org (Postfix) with ESMTP id E596713C44B for ; Tue, 29 May 2007 01:46:23 +0000 (UTC) (envelope-from bland@FreeBSD.org) Received: from (mail3.jp.viruscheck.net) [154.33.69.39]:17298 by smtp1.jp.viruscheck.net with esmtp id 1Hsqn0-0000j3-GB ; Tue, 29 May 2007 10:46:22 +0900 Received: from (noc.orchid.orchidtechnology.com) [125.206.34.113]:33218 by mail3.jp.viruscheck.net with esmtp id 1Hsqn0-0007NI-1p ; Tue, 29 May 2007 10:46:22 +0900 Received: from [89.60.200.25] ([89.60.200.25]) by noc.orchid.orchidtechnology.com (8.13.4/8.13.4) with ESMTP id l4T1kKPw010849; Tue, 29 May 2007 10:46:21 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <465B85E7.2090001@FreeBSD.org> Date: Tue, 29 May 2007 10:46:15 +0900 From: Alexander Nedotsukov User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Stephen Montgomery-Smith References: <4659EF80.70100@math.missouri.edu> <20070527223048.GA37505@icarus.home.lan> <465B0490.7080203@math.missouri.edu> In-Reply-To: <465B0490.7080203@math.missouri.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 29 May 2007 01:46:24 -0000 Correct me if I wrong. Don't you missed the fact that chdir(2) changes process wide attribute? Though it's easy to fix with -C option. 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 > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"