From owner-cvs-src@FreeBSD.ORG Fri Apr 11 12:14:22 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6723106566B for ; Fri, 11 Apr 2008 12:14:22 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 474A78FC29 for ; Fri, 11 Apr 2008 12:14:22 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so170862nfb.33 for ; Fri, 11 Apr 2008 05:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:sender; bh=dXohWYRzyBHIh4xBkyHjqw0qY6v0ccWvQ1HTEO4pUbc=; b=mfH2Bnhf4es8Uyk3VIKhrIXpCj/ELX6UTgwI/tgcVhf1x3pjnMwVi4QGro22jruhMmhJPDctxdWp9oRXL3otlOB4K9KlF1jLqKLY02Cf7UhRiT8N9AY7Tc2nbt+yotTl7kry1DUDzb7A9B2/VY2zSxWgCKH92A2RigD7yYL1IiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:sender; b=bWOwUrf0SZzrCUGH9ublM3k2oUprzbvuh+ChZU3/XHk9t67XV3XbPlZF01os9iAvn1UHzwspmmWSWYGh5dMGlcZdKseEvcGEmy0mcSzNh4UjyhsVhnazk786Om0swwElRjAi4fgPOMUHUmkArkbK5DerpQtKZUD6f+CuOEnAm8k= Received: by 10.78.194.8 with SMTP id r8mr963941huf.88.1207916060246; Fri, 11 Apr 2008 05:14:20 -0700 (PDT) Received: from fnop.net ( [89.214.131.117]) by mx.google.com with ESMTPS id i7sm9714644nfh.14.2008.04.11.05.14.16 (version=SSLv3 cipher=OTHER); Fri, 11 Apr 2008 05:14:19 -0700 (PDT) Date: Fri, 11 Apr 2008 13:14:04 +0100 From: Rui Paulo To: Roman Divacky Message-ID: <20080411121404.GB896@fnop.net> References: <200804110826.m3B8Q6fI065948@repoman.freebsd.org> <20080411114305.GA37560@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080411114305.GA37560@freebsd.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: Rui Paulo Cc: cvs-src@FreeBSD.org, Pav Lucistnik , cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/pkg_install/add perform.c src/usr.sbin/pkg_install/delete perform.c src/usr.sbin/pkg_install/lib lib.h match.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2008 12:14:22 -0000 On Fri, Apr 11, 2008 at 01:43:05PM +0200, Roman Divacky wrote: > On Fri, Apr 11, 2008 at 08:26:06AM +0000, Pav Lucistnik wrote: > > pav 2008-04-11 08:26:06 UTC > > > > FreeBSD src repository (doc,ports committer) > > > > Modified files: > > usr.sbin/pkg_install/add perform.c > > usr.sbin/pkg_install/delete perform.c > > usr.sbin/pkg_install/lib lib.h match.c > > Log: > > Optimize package registration/deregistration. Previously, when looking up the > > package name for the origin of a dependency, all entries in /var/db/pkg were > > traversed for each dependency of added/removed package. Now, gather all the > > origins first, then do the lookup in a single pass over /var/db/pkg. > > > > This should provide a major speedup for packages with hundreds of dependencies. > > the speedup is in fact quite a dramatic one... see: > > http://djdomics.free.fr/FreeBSD/pkg_install/ > > roman Indeed, thanks to you both! :-) -- Rui Paulo