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
On Sun, Mar 30, 2008 at 11:49:46PM -0700, [EMAIL PROTECTED] 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
[EMAIL PROTECTED] píše v ne 30. 03. 2008 v 23:49 -0700:
Notice pkg_info in ^T output during Checking if x11/rxvt-unicode already
installed phase. This one takes awhile. The actual command is:
`/usr/sbin/pkg_info -q -O x11/rxvt-unicode`
real0m37.697s
user0m0.125s
sys 0m0.360s
Roman Divacky wrote:
To my eye, it doesn't look like matchbyorigin() could be
re-implemented
to be faster with little effort, but could somebody have a quick look
as well? Would doing mmap() instead of scanning file line-by-line be
any faster? (though I'm not saying it's a great idea)
In
Roman Divacky wrote:
there are 3 style-only changes in the patch.. 3 lines.. I didnt consider
to make two separate patches for testing/review :)
I'll do it if you insist
Think of it as good practice. :) Seriously though, it does make the
CVS history a little easier to examine. Your best
Roman Divacky wrote:
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
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
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