On 02/12/10 01:22 PM, Bart Smaalders wrote:
On 02/12/10 10:36, Shawn Walker wrote:
...
modules/client/imageplan.py:
line 237: Do you really need access to all known packages for the
solve_uninstall case, or just the installed packages? If you only need
access to the installed packages, then use
self.image.IMG_CATALOG_INSTALLED here instead. The INSTALLED image
catalog is identical to the KNOWN catalog except that it only contains
the installed package data; the state information, etc. is all still
there. That should reduce memory usage and improve performance of this
operation.
I'm going to leave this the way it is for now. I anticipate that some
of the new dependencies we're considering may result in pkg
installations as a side effect of removing other packages, just as this
push will result in removals as a side effect of installation.
If there's any possibility that you'll need access to catalog data
outside of the installed set, then you'll definitely want to leave it as-is.
After this release is over, I think I'd like to spend some time working
with you to figure out how the catalog class can be tailored to better
suit the solver.
I believe there are multiple opportunities for simplifying (and
improving the performance of) the solver by improving the catalog class
and how the solver uses it.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss