Re: why feed a gtkListStore with more than 5000 rows are so slow?
| From: | Andrei Zmievski | Date: | Thu, 01 Feb 2007 17:07:57 +0000 |
| Subject: | Re: why feed a gtkListStore with more than 5000 rows are so slow? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7638@lists.php.net to get a copy of this message | ||
You can write your own custom model that proxies requests for data to your custom data store.
It's not in the docs yet, but here is a thread on the topic:
http://marc.theaimsgroup.com/?t=116556303400003&r=1&w=2
-Andrei
On Feb 1, 2007, at 2:47 AM, Malk0 wrote:
Hi all, I'm playing around with php-gtk2 build from the cvs version. To learn the usage of treeview and listsore i've wrote a little app to display some csv files. the problem is that when i try to load relatively big file (around 6000 rows) it take a really long time to load the data in the model and it's praticaly unusable as just scrolling the list will freeze the apps for some time before redraw. Is this a 'normal' behavior or is there any way to optimize performance. - first is there some sort of freeze/thaw as we had with gtkclist in the past? - how to make the app more responsive when scrolling the treeview? I understand that 6000 rows is not a little thing but it's not a really enormous job too and was totally doable in gtkclist so if someone have any clue i would really appreciate that. cheers, nathan -- -- le savoir ne vaut que s'il est partagé par tous -- -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php