[Yum] [PATCH] returnLeafNodes () speedups

Ville Skyttä ville.skytta at iki.fi
Sun Mar 1 21:52:02 UTC 2009


Hello,

The attached patch speeds up returnLeafNodes() by over 30% in my tests.  Doing 
returnPackages() only once doesn't gain much, but lazy fetching various lists 
and avoiding concatenating them does a lot.  While at it, changed some 
has_key()'s to "foo in bar" (has_key is deprecated in favor of the latter).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Speed-up-returnLeafNodes.patch
Type: text/x-diff
Size: 2083 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/yum/attachments/20090301/32da8eaf/attachment.bin>


More information about the Yum mailing list