Re: Programmer's criticism of GTK2



Carlos Pereira <carlos pehoe civil ist utl pt> writes: 
Definitely flexibility is very important, no doubt
about that, but in many cases raw performance is
really critical, particularly in engineering and
scientific applications.


You should be able to get adequate performance from TreeView, you just
might have to write a custom model. GtkListStore/GtkTreeStore are just
linked lists, as CList/CTree were, and thus have O(N) operations and
are wholly inappropriate for large values of N.

The constant multiplier on CList/CTree was low enough that you could
often "brute force" these widgets and get away with largish N, but the
widgets were fundamentally not scalable. TreeView should be
fundamentally scalable, but may require a custom model and other
techniques for some values of N that could be brute forced in a simple
way with CList/CTree.

In the end though, remember that CList/CTree will be around for about
6 more years, so you really can relax and use them if you like, and
TreeView will have plenty of time to mature and be enhanced.
There's still lots of room for optimization there.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]