Re: [PATCH] simplePkgList performance

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1180561132.14616.6.camel@rivendell>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.