[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-devel] Performance problems with GtkTreeView
From: |
Charles Kerr |
Subject: |
Re: [Pan-devel] Performance problems with GtkTreeView |
Date: |
Mon, 23 Sep 2002 08:46:56 -0700 |
User-agent: |
Mutt/1.3.20i |
On Sun, Sep 22, 2002 at 05:30:23PM +0200, Jacob Ilsø Christensen wrote:
> Hi.
>
> I started working on converting the grouplist to use GtkTreeView instead
> of GtkCList. I am almost done but have discovered some serious
> performance problems with the GtkTreeView compared to the GtkCList.
>
> Loading around 70000 groups using the GtkCList takes about 1 second on
> my machine but using the GtkTreeView takes around 40 seconds. Has anyone
> observed similar behaviour using the GtkTreeView?
>
> /Jacob
Yes. I filed a bug report for this back in April[1], but it
looks like as of 2.0.6 the list widget is still not fast enough
to handle it.
I tried making a custom TreeModel with arrays instead of
GSLists, so that lookup would be faster, but it didn't help.
IIRC most of the hit was in treeview's rendering.
One thing we could do is make grouplist into a tree, with
alt, comp, rec, sci, etc. as the root nodes. IIRC GtkTreeView
peforms alright in this kind of a setting; it's only in pathological
cases, like 70,000 items all in a row, where it performs badly.
cheers,
Charles
[1] http://bugzilla.gnome.org/show_bug.cgi?id=71968.
I see it's been marked as NEEDINFO, so I should probably
go rerun the benchmarks with gtk 2.0.6 and attach them.