https://bugzilla.redhat.com/show_bug.cgi?id=838734
Daiki Ueno <dueno(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dueno(a)redhat.com
--- Comment #2 from Daiki Ueno <dueno(a)redhat.com> ---
from my experience of ibus-skk, using ibus_config_get_values() instead of
calling _get_value() for each config item reduced startup time drastically.
just tried it a bit with ibus-anthy:
diff --git a/setup/prefs.py b/setup/prefs.py
index eff483b..f3ca553 100644
--- a/setup/prefs.py
+++ b/setup/prefs.py
@@ -115,8 +115,10 @@ class Prefs(object):
self.fetch_section(s)
def fetch_section(self, section):
- for k in self.keys(section):
- self.fetch_item(section, k)
+ values = self._config.get_values (section)
+ for key in values.keys():
+ v = variant_to_value(values[key])
+ self.modified.setdefault(section, {})[k] = v if v != [''] else []
and it actually seems to help.
--
You are receiving this mail because:
You are on the CC list for the bug.