After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 73199 - gtk_list_store_clear unacceptably slow
gtk_list_store_clear unacceptably slow
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: Jonathan Blandford
Jonathan Blandford
Depends on:
Blocks:
 
 
Reported: 2002-03-02 14:00 UTC by Tomas Junnonen
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Tomas Junnonen 2002-03-02 14:00:27 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.
Comment 1 Kristian Rietveld 2002-03-02 18:00:22 UTC
TreeView optimization has been scheduled for 2.0.1.
Comment 2 Kristian Rietveld 2002-03-16 23:37:54 UTC
Fixed in CVS -- it should be a lot faster now.
Comment 3 Owen Taylor 2002-12-09 15:04:42 UTC
*** Bug 90919 has been marked as a duplicate of this bug. ***