Archives

Next Archive Previous Archive

Oct 2003
Nov 2003
Dec 2003
Jan 2004
Feb 2004
Mar 2004
Apr 2004
May 2004
Jun 2004
Jul 2004
Oct 2004
Nov 2004
Dec 2004
Jan 2005
May 2005

Links

Get Firefox! Gtk#
Mono Blogs

Stuff

Powered by Pivot  
XML: RSS feed 

December 16, 2004

§ NodeView

I finally got Duncan's nice NodeStore related hacks committed to svn trunk. I removed most of the NodeView.Autoconnect stuff for now, since I'm not sure it's good to have so much view-related information in the model. It comes with docs too, as all good APIs should from the beginning.

I also committed a revamped version of the TreeViewDemo that Kris wrote. I had some doubts about how well the NodeStore concept might be performing so I added some timing metrics to both programs. The results were surprising:

mkestner@linux:~/work/gtk-sharp> mono sample/treeviewdemo.exe
135552 nodes added.
Startup time: 00:00:20.1417770
mkestner@linux:~/work/gtk-sharp> mono sample/nodeviewdemo.exe
136820 nodes created.
startup time: 00:00:11.8299730
I suspect a lot of it has to do with all the SetValue GValue-related overhead in creating a TreeStore. If you are building a big tree with Gtk.TreeStore, though, NodeStore may be worth a look.