jmr wrote:
Himm - when I am doing searches in the CLI the timings are the same as the GUI on first invocation, but on second for the CLI much faster. Is the CLI caching the results somehow? Comparing the code in the CLI and GUI we are doing exactly the same Query. The CLI did also timeout for me on opensolaris.org on a few occasions.

No, the cli doesn't cache results.

The difference in timings for the second run is purely the OS caching the python interpreter and modules.

For example, if you change from 'contrib' to 'webstack' for the repository URI, you'll see the same timing results (at least I did) when searching for <python> or <Django> after that first run.

r...@zeddicus:~# time pkg search -s "http://pkg.opensolaris.org/contrib/"; "<Django>"
PACKAGE
pkg:/[email protected]
pkg:/[email protected]

real    0m0.442s
user    0m0.147s
sys     0m0.036s
r...@zeddicus:~# time pkg search -s "http://pkg.opensolaris.org/webstack/"; "<Django>"
PACKAGE
pkg:/[email protected]
pkg:/[email protected]

real    0m0.513s
user    0m0.147s
sys     0m0.036s

Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to