[Gtk-sharp-list] TreeIter issues
tomi.valkeinen at iki.fi
Fri Nov 22 07:45:46 UTC 2013
I'm quite new to Gtk#, and there are two things about TreeIter that are
a bit odd:
1. Only one of the user_data fields are visible. user_data2 and
user_data3 are not. Googling brought up an email from 2005, someone
asking the same thing (without answer). Is there some particular reason
the user_data fields cannot be public? It makes implementing custom
models a bit hard.
2. TreeIter is a struct of 32 bytes, and passed as a value all around
TreeModelImplementor and TreeModelAdapter. While not huge, copying 32
bytes lots of times in tight loops (TreeView with lots of rows) is
surely not very good for performance.
Profiler shows TreeIter as the clear number one allocated item on my
app. If I'm not mistaken, that hints that TreeIter is being boxed, which
is probably even worse for performance than just passing it by value.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 901 bytes
Desc: OpenPGP digital signature
More information about the Gtk-sharp-list