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.8299730I 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.


