Feature or bug? (strange?) yum behaviour

James Antill james at fedoraproject.com
Tue Apr 1 20:54:40 UTC 2008


On Tue, 2008-04-01 at 16:31 -0400, David Mansfield wrote:
> On F8:

 Sure, for the developers list Fed-8/3.2.8 is almost brand new, *sigh*.

> [root at localhost ~]# time rpm -q gimp
> gimp-2.4.4-1.fc8
> 
> real    0m0.102s
> user    0m0.032s
> sys     0m0.008s
> 
> [root at localhost ~]# time yum -C list installed gimp
> Installed Packages
> gimp.i386                                2:2.4.4-1.fc8
> installed       
> 
> real    0m3.450s
> user    0m2.829s
> sys     0m0.394s

 On my machine, with my configuration etc. etc. etc.

rpm -q gimp  0.02s user 0.01s system 97% cpu 0.026 total

3.2.8
./yummain.py lsi gimp  4.43s user 0.43s system 99% cpu 4.907 total

3.2.13
./yummain.py lsi gimp  1.53s user 0.29s system 97% cpu 1.854 total

HEAD
./yummain.py lsi gimp  1.23s user 0.19s system 99% cpu 1.433 total

./yummain.py noop  0.79s user 0.16s system 99% cpu 0.949 total

..."yum shell" is roughly the difference between noop and list installed
above (~0.5).
 Doing:

import yum
yb = yum.YumBase()
yb.rpmdb.returnPackages(pattern='gimp')

...gives a little less at about 0.3 per. multiple runs of the last line.
 So, yeh, we are still "a lot" slower than rpm.
 News at 11, doing more costs time and C is faster than python. But I
have to wonder what you are doing that the "yum list installed" times
are causing you problems.


-- 
James Antill <james at fedoraproject.com>
Fedora




More information about the fedora-devel-list mailing list