From owner-freebsd-stable@FreeBSD.ORG Mon Aug 4 16:05:19 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF0E51065673 for ; Mon, 4 Aug 2008 16:05:19 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A5F258FC17 for ; Mon, 4 Aug 2008 16:05:19 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KQ20Y-0004NT-Pi for freebsd-stable@freebsd.org; Mon, 04 Aug 2008 15:30:02 +0000 Received: from xdsl-10260.wroclaw.dialog.net.pl ([84.40.242.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Aug 2008 15:30:02 +0000 Received: from mwisnicki+freebsd by xdsl-10260.wroclaw.dialog.net.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Aug 2008 15:30:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Marcin Wisnicki Date: Mon, 4 Aug 2008 15:24:37 +0000 (UTC) Lines: 34 Message-ID: References: <696148549.2959541217812741596.JavaMail.root@mail3.gatech.edu> <1938178730.2959681217812808135.JavaMail.root@mail3.gatech.edu> <20080804022618.GA4790@eos.sc1.parodius.com> <4896904E.9070807@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: xdsl-10260.wroclaw.dialog.net.pl User-Agent: Pan/0.132 (Waxed in Black) Sender: news Subject: Re: Portmaster questions (Was: Re: Using Portupgrade?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 16:05:20 -0000 On Sun, 03 Aug 2008 22:14:54 -0700, Doug Barton wrote: > It's really not appropriate to hijack the portupgrade thread for this, > so I'm starting a new subject. Also, please respect followups to -ports. > > Alex Goncharov wrote: >> Don't remember everything of that sort but here are a couple of things >> I would like to ask portmaster users' opinion and advice about: >> >> 1. I see a significant difference in the time it takes to get the same >> information using the two tools: > > As I understand it, portupgrade uses the INDEX file to determine whether > ports are up to date. Actually I think it uses bdb "cache" of index (INDEX-7.db) and also lies about it (says "up-to-date with port" instead of "up-to-date with index"). It's not even doing a good job at it, standard pkg_version significantly outperforms it: # time portversion -v | wc -l 769 real 0m15.027s user 0m9.235s sys 0m5.173s # time pkg_version -Iv | wc -l 769 real 0m4.707s user 0m3.648s sys 0m0.798s