Re: [PATCH] returnLeafNodes () speedups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ville Skyttä <ville.skytta@xxxxxx> writes:

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

 I tweaked it a bit to be a minimal patch (removal of has_key will
probably be a giant patch at some point). Also used yield instead of
getattr, anyway upstream now...

-- 
James Antill -- james@xxxxxxx
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux