[gtkmm] Re: Gtk::TreeView performance
- From: Tim Evans <t evans aranz com>
- To: gtkmm-list gnome org, gtk-list gnome org
- Subject: [gtkmm] Re: Gtk::TreeView performance
- Date: Thu, 21 Oct 2004 10:33:55 +1300
Igor Gorbounov wrote:
My application uses a TreeView (using ListStore model) table to present
once per second. This table has about 20 rows and about 40 columns.
The problem is in consuming too much CPU resources (about 14% when the
switched on, and near 3% when it is switched off). The cells af this
text, and the color of this text foreground and background is changed
values in invisible cells.
So is there any way to optimize this whole structure?
It might be faster if it's not having to recalculate sizes all the time.
You can set everything to some form of fixed-size mode using:
- CellRenderer::set_fixed_size(width, height)
- setting the tree-view property "fixed-height-mode" to true
This is based on the gtkmm API docs, I haven't actually tried it, or
even used gtkmm before. I think that some of this may not be present in
older versions of GTK.
Applied Research Associates NZ
] [Thread Prev