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

From: Date: Fri, 02 Feb 2007 18:53:53 +0000
Subject: Re: why feed a gtkListStore with more than 5000 rows are so slow?
References: 1 2 3 4 5  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7645@lists.php.net to get a copy of this message
I checked on mine (P4 2.8 single core), with various quantities from 2k to 500k rows. As could be expected, the difference increases with higher counts. Note that with larger lists, like the 50k and 500k rows list, the actual visual refresh stills take 29s after the duration printed in connected mode, but is near-instantaneous in non-connected mode. The list doesn't accept attachments, so here are the main data, in rows/ms - disconnected - first pass: around 25 - next passes: around 22 - connected - first pass: around 20 - next passes: around 12 [...] This might go into a "best practices" somewhere... > 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. [...]

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