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

James Antill jantill at redhat.com
Wed Jun 6 18:23:56 UTC 2007


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%.


-- 
James Antill <jantill at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Save-15-on-list-all-commands.patch
Type: text/x-patch
Size: 1149 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070606/94200251/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070606/94200251/attachment.pgp 


More information about the Yum-devel mailing list