[pygtk] gtkTreeView slows down application exit

Stephen George steve_geo at optusnet.com.au
Sat Nov 13 04:25:13 WST 2010


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



More information about the pygtk mailing list