[webkit-gtk] futex connection timed out ~ 500ms delay when loading

Jérémy Lal kapouer at melix.org
Fri Jun 3 07:18:07 PDT 2016


2016-06-03 11:36 GMT+02:00 Jérémy Lal <kapouer at melix.org>:

> Hi,
>
> i always wondered why loading bytes into an already instantiated webview
> took so much time (~600ms) between the webkit_web_view_load_bytes() call
> and the first
> "change" event.
>
> Today i noticed that doing it twice in a row (< one second) reduced that
> time for
> the second call from ~600ms to ~100ms.
>
> I straced it and got the small files attached.
> There is a "futex connection timed out" that would explain quite nicely
> the huge
> delay if the configured time out was 500ms.
>

That does explain the delay, as reported by strace -T:
futex(0x239da34, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 11,
{1464963229, 810966582}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
<0.500092>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20160603/f5c20406/attachment-0001.html>


More information about the webkit-gtk mailing list