[Yum-devel] [PATCH] Save 15% on "list all" commands.

James Bowes jbowes at redhat.com
Sun Jun 10 16:31:41 UTC 2007


On Wed, 06 Jun 2007 14:23:56 -0400, James Antill wrote:
> On Tue, 2007-06-05 at 17:54 -0400, James Antill wrote:
> >  "yum list 'foobarbaz*'" actually gives me ~20-21 seconds, which was a
> > surprise (again 90%+ CPU).
> 
>  I've attached a patch which drops this by about 15% (to ~17 seconds),
> as we currently loop through the entire rpmdb twice for "list all". This
> now makes "yum list" the same as search, for me.
>  We can drop it down by another couple of seconds by passing the globs
> down into sql for the package sacks ... but that requires significant
> work, and it's "only" another 10%.

Applied.

-James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070610/cd2aa035/attachment.pgp 


More information about the Yum-devel mailing list