Author: michael_meeks
Date: Wed Oct 3 17:40:12 2007
New Revision: 41241
URL: http://svn.opensuse.org/viewcvs/yast?rev=41241&view=rev
Log:
2007-10-03 Michael Meeks
* src/YGPackageSelector.cc: don't re-render the progress bar
so much when building the package tree: ~20% speedup.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/package/yast2-gtk.changes
trunk/gtk/src/YGPackageSelector.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=41241&r1=41240&r2=41241&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Wed Oct 3 17:40:12 2007
@@ -1,5 +1,8 @@
2007-10-03 Michael Meeks
+ * src/YGPackageSelector.cc: don't re-render the progress bar
+ so much when building the package tree: ~20% speedup.
+
* src/YGPackageSelector.cc (PackageSelector): turn off searching
description, too slow.
(fastGetSummary): implement cache for summaries - hugely
Modified: trunk/gtk/package/yast2-gtk.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/package/yast2-gtk.changes?rev=41241&r1=41240&r2=41241&view=diff
==============================================================================
--- trunk/gtk/package/yast2-gtk.changes (original)
+++ trunk/gtk/package/yast2-gtk.changes Wed Oct 3 17:40:12 2007
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Wed Oct 6 15:32:01 BST 2007 - mmichael@suse.de
+
+- n#300750: big speedup wrt. search / sort
+
+-------------------------------------------------------------------
Wed Aug 26 15:32:01 BST 2007 - mmichael@suse.de
- n#300390: warn if cancelling a non-submitted transaction.
Modified: trunk/gtk/src/YGPackageSelector.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPackageSelector.cc?rev=41241&r1=41240&r2=41241&view=diff
==============================================================================
--- trunk/gtk/src/YGPackageSelector.cc (original)
+++ trunk/gtk/src/YGPackageSelector.cc Wed Oct 3 17:40:12 2007
@@ -1365,7 +1365,7 @@
GtkTreeModel *model = GTK_TREE_MODEL (store);
g_object_set_data (G_OBJECT (model), "detail-package", GINT_TO_POINTER (1));
- SET_PROGRESS (zyppPool().size zypp::Package(), 10)
+ SET_PROGRESS (zyppPool().size zypp::Package(), 50)
GtkTreeIter iter;
for (ZyppPool::const_iterator it = zyppPool().byKindBegin zypp::Package();
it != zyppPool().byKindEnd zypp::Package(); it++)
@@ -1389,7 +1389,7 @@
// we need to create the categories tree as we iterate packages
map tree;
- SET_PROGRESS (zyppPool().size zypp::Package(), 5)
+ SET_PROGRESS (zyppPool().size zypp::Package(), 50)
GtkTreeIter iter, parent_iter;
for (ZyppPool::const_iterator it = zyppPool().byKindBegin zypp::Package();
it != zyppPool().byKindEnd zypp::Package(); it++)
@@ -1465,7 +1465,7 @@
// we need to create a categories tree for the patterns
map tree;
- SET_PROGRESS (zyppPool().size zypp::Pattern(), 1)
+ SET_PROGRESS (zyppPool().size zypp::Pattern(), 5)
for (ZyppPool::const_iterator it = zyppPool().byKindBegin zypp::Pattern();
it != zyppPool().byKindEnd zypp::Pattern(); it++) {
ZyppSelectable selectable = *it;
@@ -1522,7 +1522,7 @@
GtkTreeModel *model = GTK_TREE_MODEL (store);
g_object_set_data (G_OBJECT (model), "detail-package", GINT_TO_POINTER (0));
- SET_PROGRESS (zyppPool().size zypp::Language(), 2)
+ SET_PROGRESS (zyppPool().size zypp::Language(), 20)
for (ZyppPool::const_iterator it = zyppPool().byKindBegin zypp::Language();
it != zyppPool().byKindEnd zypp::Language(); it++) {
ZyppSelectable langsel = *it;
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org