<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Three million rows in a GtkTreeView</title>
	<link>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview</link>
	<description>From the mind of Philip</description>
	<pubDate>Sat, 13 Mar 2010 16:06:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: doverman</title>
		<link>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-37953</link>
		<pubDate>Sat, 18 Jul 2009 15:58:06 +0000</pubDate>
		<guid>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-37953</guid>
					<description>How can I get the sample code??
https://svn.cronos.be/svn/custom-treemodel-demo/trunk  ask me for a user and pwd</description>
		<content:encoded><![CDATA[<p>How can I get the sample code??<br />
<a href='https://svn.cronos.be/svn/custom-treemodel-demo/trunk' rel='nofollow'>https://svn.cronos.be/svn/custom-treemodel-demo/trunk</a>  ask me for a user and pwd
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Murray Cumming</title>
		<link>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-26298</link>
		<pubDate>Tue, 01 Apr 2008 14:45:47 +0000</pubDate>
		<guid>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-26298</guid>
					<description>But how can you avoid having gtk_tree_model_iter_next() called three million times in gtk_tree_view_build_tree()?</description>
		<content:encoded><![CDATA[<p>But how can you avoid having gtk_tree_model_iter_next() called three million times in gtk_tree_view_build_tree()?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: pvanhoof</title>
		<link>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-553</link>
		<pubDate>Wed, 19 Apr 2006 17:33:14 +0000</pubDate>
		<guid>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-553</guid>
					<description>Interesting, I'll take a look</description>
		<content:encoded><![CDATA[<p>Interesting, I&#8217;ll take a look
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: hoa</title>
		<link>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-552</link>
		<pubDate>Wed, 19 Apr 2006 13:45:06 +0000</pubDate>
		<guid>http://pvanhoof.be/blog/index.php/2006/01/13/three-million-rows-in-a-gtktreeview#comment-552</guid>
					<description>for etPanX, I am using a customized tree model :
http://dinh.dyndns.org/~dinh/blog/etpanX-2006-01-02-bis.tar.gz

http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model-types.h
http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model.c
http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model.h

Since GtkTreeView work with GtkTreePath, GtkTreeView is slow.
for every node, we have to know its index. Which can lead to two solutions : either :
-  determining the path of the element, which can be slow.
- or caching the index for each node, which will lead to a performance problem when an element will be inserted, you'll have to update every indexes.

You used the first solution.
I used the second solution.

My model is additionally a tree.
The slowness will show when adding or removing elements.</description>
		<content:encoded><![CDATA[<p>for etPanX, I am using a customized tree model :<br />
<a href='http://dinh.dyndns.org/~dinh/blog/etpanX-2006-01-02-bis.tar.gz' rel='nofollow'>http://dinh.dyndns.org/~dinh/blog/etpanX-2006-01-02-bis.tar.gz</a></p>
<p><a href='http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model-types.h' rel='nofollow'>http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model-types.h</a><br />
<a href='http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model.c' rel='nofollow'>http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model.c</a><br />
<a href='http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model.h' rel='nofollow'>http://dinh.dyndns.org/~dinh/blog/etpan-gtk-tree-model.h</a></p>
<p>Since GtkTreeView work with GtkTreePath, GtkTreeView is slow.<br />
for every node, we have to know its index. Which can lead to two solutions : either :<br />
-  determining the path of the element, which can be slow.<br />
- or caching the index for each node, which will lead to a performance problem when an element will be inserted, you&#8217;ll have to update every indexes.</p>
<p>You used the first solution.<br />
I used the second solution.</p>
<p>My model is additionally a tree.<br />
The slowness will show when adding or removing elements.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
