[Yum-devel] [RFC][PATCH] Use a user-defined function for filelists searching

James Bowes jbowes at redhat.com
Tue Mar 6 16:05:32 UTC 2007


The attached patch adds a user-defined sqlite function for use during
searchFiles in sqlitesack. Essentially, for each row in the table,
sqlite calls out to a python function that reassembles the full path,
and runs the glob function on it.

I'd like some feedback on this, because the sql to python dance is not
straightforward, and I would also appreciate seeing some other numbers
on the run times.

I have seen the time for 'yum provides "*zsh*"' go from 24s to 19s on a
2.8 GHz Xeon, and from 12s to 11s on my laptop (whose stats escape me
now). One second may not be enough to bother, which is why I'd like to
see what other people experience.

-James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: callout-fn.diff
Type: text/x-patch
Size: 2564 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070306/dd8ff646/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070306/dd8ff646/attachment.pgp 


More information about the Yum-devel mailing list