[uim-commit] r485 - trunk/helper
yamaken at freedesktop.org
yamaken at freedesktop.org
Wed Feb 2 11:55:16 PST 2005
Author: yamaken
Date: 2005-02-02 11:55:12 -0800 (Wed, 02 Feb 2005)
New Revision: 485
Modified:
trunk/helper/pref-gtk.c
Log:
* helper/pref-gtk.c
- (apply_button_clicked):
* Add debug messages. Remove it once the problem has been resolved
* Add the comment about the performance of 'apply' operation. The
gtk_tree_model_foreach() code fragment is very slow. It takes
approximately 8 second in my environment. And it seems to be
increasing by number of custom variables exponentially. Can it
be reduced?
Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c 2005-02-02 19:36:28 UTC (rev 484)
+++ trunk/helper/pref-gtk.c 2005-02-02 19:55:12 UTC (rev 485)
@@ -1953,8 +1953,17 @@
if (value_changed) {
uim_custom_save();
+ fprintf(stderr, "save done\n");
uim_custom_broadcast();
+ fprintf(stderr, "broadcast done\n");
value_changed = FALSE;
+
+ /*
+ This code fragment is very slow. It takes approximately 8 second
+ in my environment. And it seems to be increasing by number of
+ custom variables exponentially. Can it be reduced? -- YamaKen
+ 2005-02-03
+ */
gtk_tree_model_foreach(
gtk_tree_view_get_model(GTK_TREE_VIEW(pref_tree_view)),
pref_tree_model_foreach_unset_value_changed_fn,
More information about the Uim-commit
mailing list