From owner-cvs-src@FreeBSD.ORG Fri Apr 11 11:43:39 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 DE7511065678; Fri, 11 Apr 2008 11:43:39 +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 8BD058FC12; Fri, 11 Apr 2008 11:43:39 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 3130467C412; Fri, 11 Apr 2008 13:43:19 +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 Yka+fahdOYGg; Fri, 11 Apr 2008 13:43:05 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id D343767C2DD; Fri, 11 Apr 2008 13:43:05 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m3BBh5Qm037865; Fri, 11 Apr 2008 13:43:05 +0200 (CEST) (envelope-from rdivacky) Date: Fri, 11 Apr 2008 13:43:05 +0200 From: Roman Divacky To: Pav Lucistnik Message-ID: <20080411114305.GA37560@freebsd.org> References: <200804110826.m3B8Q6fI065948@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804110826.m3B8Q6fI065948@repoman.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@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 11:43:40 -0000 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