[603] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Making gtk thread-safe
daemon@ATHENA.MIT.EDU (Owen Taylor)
Thu Jul 31 01:57:21 1997
From: Owen Taylor <owt1@cornell.edu>
To: gtk-list@redhat.com
In-reply-to: Your message of "Wed, 30 Jul 1997 20:31:32 PDT."
<Pine.LNX.3.96.970730202310.25244A-100000@cascadia.a42.com>
Date: Thu, 31 Jul 1997 01:58:13 -0400
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
> Here's an example of somthing I'm doing that I'd like to use threads for:
> In my e-mail client, I have to fill a long list of e-mail messages,
> sometime 200-400 messages in a list. This takes about 6-10 seconds on my
> Pentium. I would really like to launch a thread to fill the list and run
> a status bar, and meanwhile the window kept itself re-painted and
> menus/sections responded when clicked (and I want to eat my cake too!!!).
Not that it is really relevant to the subject at hand, but you
can probably speed up the process a lot by making a GList out of
your items, then using gtk_list_append_items to add them all at once.
Otherwise, you're spending most of the time doing useless geometry
negotation. Maybe you're already doing this ... When I wrote a little
ftp client in PerlGTK, I thought I needed to do incremental filling of
directory lists, until I realized that I could make the performance
quite satisfactory just by not adding each item separately.
Regards,
Owen
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null