Author: matz Date: Thu Feb 14 12:01:40 2008 New Revision: 8673 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8673&view=rev Log: Ahja, 80% of the time in doUpgrade (now that the iterator is fast) is taken up by filling a cleverly sorted map, which isn't used anywhere. Modified: branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/ResolverUpgrade.cc Modified: branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/ResolverUpgrade.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/ResolverUpgrade.cc?rev=8673&r1=8672&r2=8673&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/ResolverUpgrade.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/ResolverUpgrade.cc Thu Feb 14 12:01:40 2008 @@ -363,13 +363,7 @@ (UpgradeOptions&)opt_stats_r = opts; } - /////////////////////////////////////////////////////////////////// - // Reset all auto states and build PoolItemOrderSet of available candidates - // (those that do not belong to PoolItems set to delete). - // - /////////////////////////////////////////////////////////////////// - PoolItemOrderSet available; // candidates available for install (no matter if selected for install or not) - + /* Find upgrade candidates for each package. */ PoolIndex identIndex; for ( ResPool::const_iterator it = _pool.begin(); it != _pool.end(); ++it ) { @@ -446,7 +440,6 @@ } ++opt_stats_r.pre_avcand; - available.insert( candidate ); } // iterate over the complete pool // reset all seen (for next run) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org