On 10/06/11 15:20, [email protected] wrote:
Hi Folks,
I'm wondering why retrieval of a pkg manifest takes a very long time
with the -g option, even when pointing to a local filesystem:
time pkg contents -m -g
/var/tmp/shri/8c847f3b-abb3-488f-ac3d-12a31c78c5c4/data xman
...
real 1m51.482s
user 1m49.217s
sys 0m1.237s
But with -r its an order of magnitude faster
time pkg contents -m -r xman
....
real 0m1.207s
user 0m1.011s
sys 0m0.176s
That's easy.
When you use -g the client has to retrieve the entire package catalog
from the target repository, analyze it, mark package statuses, and then
fulfil your request.
Because -g can have no permanent effect on the client, none of the
information is cached, so it has to be done from scratch every time.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss