Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2005 11:59:33 -0500
From:      Parv <parv@pair.com>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        ports@freebsd.org
Subject:   Re: pkg_* slow?
Message-ID:  <20050327165932.GA35968@holestein.holy.cow>
In-Reply-To: <20050327125905.GI60345@elvis.mu.org>
References:  <20050327125905.GI60345@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <20050327125905.GI60345@elvis.mu.org>, wrote Alfred
Perlstein thusly...
>
> I noticed that ports are very slow lately, what I realized is that
> the pkg_* tools on my machine spend a huge amount of time walking
> the /var/db/pkg/* files stat(2)'ing them and doing other
> operations.
> 
> This gets really slow when one has 500+ packages installed.

"pkg_info -[wRr]" is going to take its sweet time to look for the
requested information.  "pkg_info -s" will be slow if there are
large number of files in a package.  Plain "pkg_info" should be
rrelatively fast if the given arguments don't specify a "larger
number" of ports.

One could create some sort of cache the that would (try to) minimize
file accesses/searches.


  - Parv

-- 



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