Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2008 21:14:16 +0100
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Pav Lucistnik <pav@FreeBSD.org>
Cc:        soralx@cydem.org, freebsd-ports@FreeBSD.org
Subject:   Re: [patch] pkg_delete(1) speedup
Message-ID:  <20080326201416.GA34807@freebsd.org>
In-Reply-To: <1206548309.78560.69.camel@pav.hide.vol.cz>
References:  <1206548309.78560.69.camel@pav.hide.vol.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--cWoXeonUoKmBZSoM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 26, 2008 at 05:18:29PM +0100, Pav Lucistnik wrote:
> You might have noticed a thread on the mailing list called "ports system
> woes". The submitter pointed out an inefficiency in pkg_delete routine,
> that parses the whole /var/db/pkg over and over again for every
> dependency of a package being removed.
>=20
> Attached is a patch by rdivacky that implements the idea of looking up
> all the values in a single pass over /var/db/pkg content.

I hacked a slightly better patch that coveres a part of pkg_add too..

please review/test on:

	www.vlakno.cz/~rdivacky/pkg_tools.patch

comments, benchmarks more than welcome!

roman=09

--cWoXeonUoKmBZSoM
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)

iEYEARECAAYFAkfqrpgACgkQLVEj6D3CBEzcEACeJNoVaABjH8qq4WlGGqr7iUIY
e08AniWSosAj9Z1Z+9lyij+K+5vXbZYw
=l9WQ
-----END PGP SIGNATURE-----

--cWoXeonUoKmBZSoM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080326201416.GA34807>