From 2e9d57dc47287d8687340ac0fdae9cd85d364993 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Mon, 11 Jun 2001 05:32:08 +0000 Subject: [PATCH] add a debugging note, for later review ... git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4612 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/dialog-account.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gnome/dialog-account.c b/src/gnome/dialog-account.c index 8ccf4c3304..77eee3eeb3 100644 --- a/src/gnome/dialog-account.c +++ b/src/gnome/dialog-account.c @@ -1639,6 +1639,14 @@ gnc_account_window_create(AccountWindow *aw) aw->parent_tree = gnc_account_tree_new_with_root(aw->top_level_account); gtk_clist_column_titles_hide(GTK_CLIST(aw->parent_tree)); gnc_account_tree_hide_all_but_name(GNC_ACCOUNT_TREE(aw->parent_tree)); + + /* hack alert -- why do we need to refresh just to put up an account + * edit window? This refresh triggers a massive retraversal + * of the price database (presumably to compute account balances) + * and can suck up a lot of cpu juice from the SQL backend as + * a result. We should only refresh the account names, not + * the balances here. + */ gnc_account_tree_refresh(GNC_ACCOUNT_TREE(aw->parent_tree)); gnc_account_tree_expand_account(GNC_ACCOUNT_TREE(aw->parent_tree), aw->top_level_account);