[Yum] [PATCH] simplePkgList performance
seth vidal
skvidal at linux.duke.edu
Wed May 30 21:38:52 UTC 2007
On Sun, 2007-05-06 at 22:28 +0100, Charlie Brej wrote:
> I was doing some profiling runs of yum, pirut and pup and noticed that
> simplePkgList consumes a lot of time because when self.pkglist is tested
> for being already populated, an empty list is considered as false. In my
> case the "development-source" repo was empty so the simplePkgList
> rebuilt the list instead of using the cache every time __len__ was called.
>
> Yum update (185 packages not to up date but quit before install)
> from: 0m56.804s
> to: 0m24.573s
>
> Pirut load time:
> from: 0m20.915s
> to: 0m4.576s
Charlie,
Thanks - I've committed your patch. Good thing to notice.
-sv
More information about the Yum
mailing list