[Yum-devel] Re: [yum-cvs] yum/yum depsolve.py,1.146,1.147

Terje Rosten terje.rosten at ntnu.no
Tue Apr 3 18:47:11 UTC 2007


* seth vidal
| 
| The section where it's taking so much time is this:
| 
| in depsolve.py lines 1154 -> 1159
|         potential_providers = self.rpmdb.searchProvides(r)
|         # FIXME the below is expensive - make it less so
|         for txmbr in self.tsInfo.getMembers(None, TS_INSTALL_STATES):
|             if r in txmbr.po.provides_names or r in txmbr.po.filelist:
|                 potential_providers.append(txmbr.po)
| 
| generating the list of potential providers to check is taking a lot of
| time for each run and it grows as the tsInfo size grows.

FYI: 

CVS HEAD (last patch is 'Create pkgKey index on PRCO data, as suggested
by Florian Festi') is now faster than 3.1.5 in depsolving 130 updates
in 250 MB, thanks!


 - Terje




More information about the Yum-devel mailing list