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

Jérémy Lal kapouer at melix.org
Sun Jun 5 13:22:27 PDT 2016


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

>
>
> 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>
>

ltrace helped me find the problem doesn't come from webkitgtk at all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20160605/f8dc0061/attachment.html>


More information about the webkit-gtk mailing list