[Yum-devel] [PATCH] Move most operation to be based on pkgKey instead of pkgId

Florian Festi ffesti at redhat.com
Fri Aug 17 14:53:41 UTC 2007


Hi!

Some optimizations for the SqliteSack:

Move most operation to be based on pkgKey instead of pkgId to gain some speed.
Generate only one package object per package to avoid duplicates.
Load only minimal tags per default.

Patch is quite straight forward although it changes a lot of lines and more 
or less all SQL statements. I see an 15% speed up for most use cases and 
about 10% memory savings.

I kept .excludes and ._excluded() although they are no longer needed within 
the SqliteSack itself. Don't know if they are part of the API...

Have fun

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Move-most-operation-to-be-based-on-pkgKey-instead-of.patch
Type: text/x-patch
Size: 16160 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070817/e7fcbea2/attachment.bin 


More information about the Yum-devel mailing list