On 12/11/2010 12:51 AM, John Haiducek wrote:
I have an app that sometimes loads a lot of data into a gtkTreeView
(several thousand rows). It performs pretty well during user
interaction, but if there is a large amount of data in the treeview,
it takes a really long time to exit.
I'm storing the data in a gtkListStore and a gtkTreeModelSort. I
assume the bottleneck is in freeing memory used by either the TreeView
or the ListStore. Is there any way to speed up destruction of these
objects? Or am I misinterpreting the symptoms here?
John Haiducek
I don't have much experience, but are you deleting the data from the
store before you delete the view?, maybe the treeview it slow because
it's updating the view with each delete?
There is something in faq about how to turn off the view until when you
do mass changes to the store.
just a thought.
Steve
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/