Make GTK debug window usable again

Jorge Villaseñor salinasv at
Thu Nov 15 15:12:31 EST 2012

On Thu, Nov 15, 2012 at 12:13 PM, Tomasz Wasilczyk <
tomkiewicz.groups at> wrote:

> Hi,
> debug window became incredibly slow since migration to webkit. It's
> even not usable for some activities. I've digged around a bit, and
> I've managed to speedup it really well: delay is unnoticeable.

Thanks for addressing this issue. I have been annoyed too but not enough to
do something about it. =P

> Patch is divided to two parts:
> - speeding up gtkwebview [1]: now, it gets only one element at once.
> When it deals with thousands of debug log lines (typical startup for
> few) it takes forever until g_idle_add hits them all. After applying
> the patch, it get elements until 100ms timeout is hit.

Does this patch block pidgin for 100ms in the while? Does it is noticeable
in the UI?
If so, how much we can get down that number without affecting the IU?

Aside of this, it looks like a good idea to improve responsiveness.

> - speeding up debug log itself [2]: adding new lines by appending html
> is so slow, that timeout mentioned before is hit a lot of times. After
> moving this functionality to javascript, time effort became small.
Have you measured if doing this append int js is actually quicker than in
C? (I have no idea)

And this rises a question for me. Now that we have webkit, how much of
our functionality we want to move to js where possible and how much keep it
in C?

I guess sooner or later I will need to actually learn to do some JS. =(

> The first one seems (for me) to be ready to push into 3.0.0. The
> second one needs some more work (fixing of filter feature), but it
> shows the idea.
> Waiting for comments,
> Tomek
> [1]
> [2]
> _______________________________________________
> Devel mailing list
> Devel at


A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Devel mailing list