"and not installed"?

Rainer Müller raimue at macports.org
Sun Jul 4 05:01:14 PDT 2010


On 2010-07-04 00:39 , Michael_google gmail_Gersten wrote:
> This simple command takes a long time
> 
> port info depof:python26 and not installed
> 
> Is "and not installed" lacking any optimization, i.e, does it first
> make a list that satisfies depof:python26, and then check only that
> list for not installed, or does it make the entire list of all
> non-installed ports, and then intersect the two lists?

No, it is not optimized. It is evaluating both operands and than builds
the intersection of the two sets.

Note that this operation is already a lot faster with the sqlite
registry backend that is available as of MacPorts 1.9.0. See the
announcement [1] how to switch from "flat" to "sqlite".

Rainer

[1]
http://lists.macosforge.org/pipermail/macports-announce/2010-June/000008.html



More information about the macports-users mailing list