[Yum-devel] parsePackages() vs matchPackageNames()

seth vidal skvidal at fedoraproject.org
Tue Dec 11 22:32:10 UTC 2007


On Tue, 2007-12-11 at 09:26 -0500, Jeremy Katz wrote:
> On Tue, 2007-12-11 at 02:24 -0500, seth vidal wrote:
> > It's either too late or night or I'm losing my mind:
> > 
> > For cases where matching case insensitively nor matching against a
> > subset of packages from any given sack are not at issue why are we using
> > packages.parsePackages() vs just using sackobject.matchPackageNames()
> [snip]
> > I don't remember having this conversation before so I'm thinking some of
> > it just legacy hang-around. I know why parsePackages exists - it's so we
> > can case insensitive matches - but we're never going to do that for
> > update/install/remove so that doesn't matter. 
> 
> Isn't one of them faster?  I have a vague recollection of looking into
> something along these lines ~ 6 months or so ago
> 


well parsePackages should be slower by a bit if only b/c it has to
generate those big lists and then match each of them. However the case
matching is important for searches and what-not.

-sv





More information about the Yum-devel mailing list