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 101547 - Inserting items in sorted treeview is slow
Inserting items in sorted treeview is slow
Status: RESOLVED DUPLICATE of bug 87556
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.1.x
Other All
: Normal enhancement
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2002-12-18 19:02 UTC by nadaschauher
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description nadaschauher 2002-12-18 19:02:38 UTC
I've noticed that inserting items into a sorted treeview is extremely slow.
There seems to be no reliable way to temporarily disable sorting while
inserting a bunch of new items except deleting the Store, populating a new
one and attaching that. The speed penalty is enormous, I estimate my test
application to insert at least 10 times slower on the sorted treeview.

There should be a function to temporarily disable sorting, in order to
insert larger amounts of items. Even better would be one that completely
freezes the state - visual representation, sorting info, etc. - of the tree.

Applications with big lists suffer badly, Rhythmbox is an example.
Comment 1 Kristian Rietveld 2002-12-19 01:26:42 UTC
That inserting items in a sorted treemodel is slower, is a known fact,
because you have to use insertion sort (which is O(n) IIRC).  We can't
really change anything there.

So basically you are asking for a function to temporarily disable sorting.

Marking as DUP of a "can't disable treemodel sorting" bug.


*** This bug has been marked as a duplicate of 87556 ***