Large chat room performance again

Richard Laager rlaager at wiktel.com
Sat Apr 14 13:26:30 EDT 2007


On Sat, 2007-04-14 at 18:31 +0200, Fredrik Tolf wrote:
> Hi list!
> 
> This is my third post to this list regarding this topic, so I'm at it
> again. :)
> 
> I've gotten my previous issues to work now, but there seems to be a
> performance issue with the GTK user list when the user count is ~10000.
> In my attempts to profile it, I compiled beta6 with debug flags and
> interrupted it at some points with gdb. The majority of the interrupts,
> it wasn't possible to get a good stack trace (since the code was running
> deep in Gtk/Pango which weren't compiled with debugging), but the times
> I did get a reliable trace, it seemed to be running in
> gtkconv.c:sort_chat_users(), which seems called by a autosorting
> GtkListStore.

Is the problem here that sorting is just too slow, or that the
GtkListStore does at least some sorting on every insert? Have you tried
disabling the sorting from pidgin_conv_chat_add_users before you insert
a huge block of users and then re-enabling it after?

Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://pidgin.im/pipermail/devel/attachments/20070414/977d15d6/attachment.sig>


More information about the Devel mailing list