Re: [gtkmm] Gtk::TreeView performance
- From: David Jensen <djensen inebraska com>
- To: Igor Gorbounov <igorbounov topazelectro ru>
- Cc: gtk-list gnome org, gtkmm-list gnome org
- Subject: Re: [gtkmm] Gtk::TreeView performance
- Date: Wed, 20 Oct 2004 08:39:17 -0500
Igor Gorbounov wrote:
Hi, All!
My application uses a TreeView (using ListStore model) table to present
measured data
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
table is
switched on, and near 3% when it is switched off). The cells af this
tables display
text, and the color of this text foreground and background is changed
depending on
values in invisible cells.
So is there any way to optimize this whole structure?
try keeping a Glist of structs of GDK::Colors that matches the ListStore
row:column 'color' cells. Have the row:column colors be pointers into the Glist.
accessing a Glist struct is cheap, accessing a row:column is very expensive
maybe
--- David Jensen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]