Re: Problem with a TreeView - speed
- From: Murray Cumming <murrayc murrayc com>
- To: Milosz Derezynski <internalerror gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Problem with a TreeView - speed
- Date: Tue, 17 Mar 2009 11:21:03 +0100
On Mon, 2009-03-16 at 19:49 +0100, Milosz Derezynski wrote:
> Sorry, I somehow skipped explicitly stating the point: There is no
> such thing as "invisible" rows with TreeView, because at least once,
> they will be visited. Whether you use a cell data func or not
> practically makes no difference at all, at least for that particular
> problem.
How do you define "visited"? The cellrenderers will not be rendered if
you using set_cell_data_func() and fixed-height mode. A GtkTreeIter is
nevertheless created and destroyed in a loop for each row but that's
insignificant in comparison.
And using set_cell_data_func() avoids copying your data into the model,
which is obviously a performance win.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]