pkg_* slow?

Parv parv at pair.com
Sun Mar 27 08:59:34 PST 2005


in message <20050327125905.GI60345 at 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

-- 



More information about the freebsd-ports mailing list