[Yum-devel][PATCH] 3.0.2 hitlist

James Bowes jbowes at redhat.com
Tue Nov 14 03:40:54 UTC 2006


Hi Terje:

Terje Rosten wrote:
> * Jeremy Katz
> | Maybe look into trying to speed some things up?
> 
> Indeed, I see some serious regression in this area.

xx snip xx

> Conclusion: 
>   please revert yum/rpmsack.py to the 2.9.6 version.
> 
> A patch do just that is attached.
>

Nice detective work :)

While I was on the phone waiting to get an RMA number for my busted 
router, I went ahead and removed any bits from the patch that weren't 
relevant to buildIndexes() (attached). Hopefully this will make it 
easier for others to review and comment.

I haven't personally looked at the performance issues beyond running 
your sample command line.

> 
>  - Terje
> 
> PS!
> 
> To feel the pain, try this on fc6: 
> 
>  $ time yes no | yum groupinstall 'Java Development'
> 
> My results are:
> 
>  - yum cvs with rpmsack.py reverted to 2.9.6 : real 0m8.044s 
>  - yum 3.0-6                                 : real 1m12.265s
> 
> Almost a order of magnitude slower...

My times weren't as impressive; buildindex rpmsack was only about 4s 
elapsed vs CVS at 4.5s elapsed. These times were the same with and 
without my changes, by the way.

-James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpmsack-use-buildindex.patch
Type: text/x-patch
Size: 11175 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20061113/ef59d7f3/attachment.bin 


More information about the Yum-devel mailing list