[hamster-applet/gnome-2-28] performance - removing model while populating the tree (observed nasty lag on larger datasets)
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-28] performance - removing model while populating the tree (observed nasty lag on larger datasets)
- Date: Fri, 8 Jan 2010 01:19:31 +0000 (UTC)
commit dff15ee61576be667ad50536098808b1b6edc666
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Jan 8 01:08:18 2010 +0000
performance - removing model while populating the tree (observed nasty lag on larger datasets)
hamster/stats.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/hamster/stats.py b/hamster/stats.py
index caa6621..c76a750 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -828,6 +828,7 @@ than 15 minutes you seem to be a busy bee." % ("<b>%d</b>" % short_percent))
self.get_widget("totals_by_category").set_size_request(w + 40, -1)
def fill_tree(self, facts):
+ self.fact_tree.set_model(None)
day_dict = {}
for day, facts in groupby(facts, lambda fact: fact["date"]):
day_dict[day] = sorted(list(facts),
@@ -866,6 +867,7 @@ than 15 minutes you seem to be a busy bee." % ("<b>%d</b>" % short_percent))
fact
])
+ self.fact_tree.set_model(self.fact_store)
self.fact_tree.expand_all()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]