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
_______________________________________________
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list