Re: GtkTreeView: inserting rows faster. [follow up]



Peter Zelezny <pzel dodo com au> writes:


> > Odd.  Unless you're marking the whole tree dirty, or swapping out models
> > or something, I can't see why that would happen.
> 
> It was happening due to:
> 
> gtk_tree_view_column_set_sizing (gtk_tree_view_get_column (treeview, 0),						GTK_TREE_VIEW_COLUMN_AUTOSIZE);
> 
> I guess that caused a wholesale rehash of the entire list, everytime I inserted
> just one row. Without it, performance is very good.

Ah, yes.  That will do it.  Autosize can force a rescan if the new row
is of less than the current width.  There's really nothing I can do
(short of caching the width of every cell) to fix that.

Thanks,
-Jonathan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]