Date: Fri, 11 Apr 2008 13:14:04 +0100 From: Rui Paulo <rpaulo@FreeBSD.org> To: Roman Divacky <rdivacky@FreeBSD.org> Cc: cvs-src@FreeBSD.org, Pav Lucistnik <pav@FreeBSD.org>, 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 Message-ID: <20080411121404.GB896@fnop.net> In-Reply-To: <20080411114305.GA37560@freebsd.org> References: <200804110826.m3B8Q6fI065948@repoman.freebsd.org> <20080411114305.GA37560@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080411121404.GB896>