Mailinglist Archive: yast-commit (687 mails)

< Previous Next >
[yast-commit] r43285 - in /trunk/gtk: ChangeLog src/yzyppwrapper.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sat, 05 Jan 2008 23:17:37 -0000
  • Message-id: <20080105231737.A4F2E26DF9@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sun Jan 6 00:17:37 2008
New Revision: 43285

URL: http://svn.opensuse.org/viewcvs/yast?rev=43285&view=rev
Log:
* src/yzyppwrapper (Query): reordered query checks for performance.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/yzyppwrapper.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=43285&r1=43284&r2=43285&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sun Jan 6 00:17:37 2008
@@ -1,3 +1,7 @@
+2007-01-05 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/yzyppwrapper (Query): reordered query checks for performance.
+
2007-01-04 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/yzyppwrapper (Query): bug fix: search broken.

Modified: trunk/gtk/src/yzyppwrapper.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/yzyppwrapper.cc?rev=43285&r1=43284&r2=43285&view=diff
==============================================================================
--- trunk/gtk/src/yzyppwrapper.cc (original)
+++ trunk/gtk/src/yzyppwrapper.cc Sun Jan 6 00:17:37 2008
@@ -792,14 +792,6 @@
break;
match = it != values.end();
}
- if (match && collections.defined) {
- const std::list <Ypp::Package *> &values =
collections.values;
- std::list <Ypp::Package *>::const_iterator it;
- for (it = values.begin(); it != values.end(); it++)
- if (package->fromCollection (*it))
- break;
- match = it != values.end();
- }
if (match && categories.defined) {
Ypp::Node *pkg_category = package->category();
const std::list <Ypp::Node *> &values =
categories.values;
@@ -819,6 +811,14 @@
break;
match = it != values.end();
}
+ if (match && collections.defined) {
+ const std::list <Ypp::Package *> &values =
collections.values;
+ std::list <Ypp::Package *>::const_iterator it;
+ for (it = values.begin(); it != values.end(); it++)
+ if (package->fromCollection (*it))
+ break;
+ match = it != values.end();
+ }
return match;
}
};

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages