GNOME Bugzilla – Bug 73199
gtk_list_store_clear unacceptably slow
Last modified: 2011-02-04 16:09:36 UTC
Doing a simple gtk_list_store_clear () takes a very long time with thousands of entries in the GtkListStore. Inserting a few thousands rows takes 5-10 seconds in my application, but removing them with gtk_list_store_clear takes over 1 minute 30 seconds on my 800Mhz machine. It looks like the TreeView is constantly being redrawn as the list is being cleared. Maybe we need freeze/thaw functions for the widget like clist used to have? They would also be useful when inserting large data sets.
TreeView optimization has been scheduled for 2.0.1.
Fixed in CVS -- it should be a lot faster now.
*** Bug 90919 has been marked as a duplicate of this bug. ***