Re: why feed a gtkListStore with more than 5000 rows are so slow?

From: Date: Fri, 02 Feb 2007 10:52:19 +0000
Subject: Re: why feed a gtkListStore with more than 5000 rows are so slow?
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7643@lists.php.net to get a copy of this message
- first most of this topic is about gtkclist that I know and have no problem with but It's depregcated in php-gtk2 - second if i can append 5000 rows in 2sec in the tree view i'll be really happy at this time it's more like 60sec at leat (certainly more) so i'll have
have a look at this simple example using GtkTreeview. http://php-gtk.pastebin.ca/336898 I have built a simple class named ListWidget. This class has a reduced set of methods and can be used easily. If you need some more methods, just pick them from GtkTree* classes. This class break Gtktreeview model (view, model, controler) but can help starting with it. I have added a simple test to accomplish a large feeding with and without model connection/disconnection. This feed can be run in less than 0.3 seconds on my computer (3Ghz). so update your computer or try to perfect your query from database. Connected or disconnected run time are nearly the same.

« previous php.gtk.general (#7643) next »