Re: Container performance
- From: Junior Polegato - GTK+ & GTKmm <gtk juniorpolegato com br>
- To: jcupitt gmail com
- Cc: gtk-list gnome org, gtk digicapt ch
- Subject: Re: Container performance
- Date: Sat, 01 Dec 2007 10:57:46 -0200
jcupitt gmail com escreveu:
On 12/1/07, digicapt - gtk dev <gtk digicapt ch> wrote:
If you try following code, you'll see that filling a container with 4000
entries (first button) is about 20 times slower than filling a container with
4000 labels (second button) : 1 seconds for labels on my PC, 20 seconds for
the edits.
Entries are just much, much more complicated. Creating 4000 edit
widgets is always going to be slow.
What you need to do is use a treeview instead, and have a editable as
a cell renderer. Now it will display like a label (it should be even
quicker than the label case), but when you click on an item, it will
turn into an edit widget for the time that you are using it.
Read about it here:
http://library.gnome.org/devel/gtk/unstable/TreeWidgetObjects.html
John
Hi,
You can use this technical: insert the labels with formatation
like edit and control the mouse click and the tab key.
--
Yours Truly,
Junior Polegato
A pilgrim of problems; A parchment of solutions!
Professional Page: http://www.juniorpolegato.com.br
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]