From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 14 00:52:48 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1931616A41F for ; Thu, 14 Jun 2007 00:52:48 +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 E06B613C468 for ; Thu, 14 Jun 2007 00:52:47 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (localhost [127.0.0.1]) by math.missouri.edu (8.13.1/8.13.1) with ESMTP id l5E0qlWh028743; Wed, 13 Jun 2007 19:52:47 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Received: from localhost (stephen@localhost) by math.missouri.edu (8.13.1/8.13.1/Submit) with ESMTP id l5E0qltf028740; Wed, 13 Jun 2007 19:52:47 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Date: Wed, 13 Jun 2007 19:52:46 -0500 (CDT) From: Stephen Montgomery-Smith To: youshi10@u.washington.edu In-Reply-To: Message-ID: <20070613195143.G3312@math.missouri.edu> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org, Tim Kientzle Subject: Re: Using shell commands versus C equivalents X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 00:52:48 -0000 On Wed, 13 Jun 2007, youshi10@u.washington.edu wrote: > PS I'm looking at pkg_install and pkg_version mostly, but I'll be looking > into the other package utilities closely in the next couple weeks, evaluating > what approaches I should take in solving some bottlenecks with installing > packages and ports. My goals are up on > , and will be modified soon. Since you are interested in speeding up the pkg_* stuff, I thought I would bring these to your attention (speed ups to the pkg_create and port registration processes, not quite what you are doing, but related). http://www.freebsd.org/cgi/query-pr.cgi?pr=112765 http://www.freebsd.org/cgi/query-pr.cgi?pr=112630 Let me also wish you good luck in your speed improvements. I was rather encouraged by these two, but all my future searches proved somewhat negative. In particular I looked rather hard at trying to speed up "make" (required for pkg_version when it calls "make -V PKGNAME" multiple times). I can tell you that in that instance, replacing linear lists by berkeley DB made no difference at all - it was very disappointing. In short, you really want to do a lot of profiling and see where the speed bottlenecks really are before writing lots of code. Stephen