[patch] pkg_delete(1) speedup

Roman Divacky rdivacky at FreeBSD.org
Wed Mar 26 13:33:22 PDT 2008

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.
> 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:


comments, benchmarks more than welcome!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080326/91dc5506/attachment.pgp

More information about the freebsd-ports mailing list