Patch for gtk+ 1.2

Heap sort for the GTK+ ctree widget

It was mainly written for Sylpheed-claws but should implemented in the lib not in the app. So here is the patch (gtk+-ctree-sorting.patch.gz).

For GTK+ version: 1.2.10
Gprof timings for about 20000 entries:

function            new     old
gtk_ctree_unlink    0.03s   0.74s
gtk_ctree_link      0.01s   0.55s
compare             0.01s   1.18s
sort algorithm      0.04s   3.94s
sum                 0.09s   6.41s

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.