[Yum-devel] [patch] Dynamic indexes for PackageSack

Florian Festi ffesti at redhat.com
Wed Jun 13 07:41:05 UTC 2007


Hi!

This patch keeps the indexes of the PackageSack in sync with the packages in 
the sack. This solves a corruption of the indexes when adding packages 
between searches.

The patch dramatically increases the performance for
Add packages - Search - Add package - Search   scenarios

It dramatically reduces performance for
Add packages - Search - Remove most packages - Search   scenarios

This can be avoided using the new .clearIndexes() method if the situation is 
known in advance.


Patch will be needed for searching in localinstall packages. As the code 
handling them will move away from cli.py and call patterns of 3rd party code 
  is unknown this patch is needed to avoid difficult to spot bugs related to 
the outdated indexes.

Florian Festi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-PackageSack_indexes.diff
Type: text/x-patch
Size: 5418 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070613/eed18f3c/attachment.bin 


More information about the Yum-devel mailing list