<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-06-03 11:36 GMT+02:00 Jérémy Lal <span dir="ltr">&lt;<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>i always wondered why loading bytes into an already instantiated webview</div><div>took so much time (~600ms) between the webkit_web_view_load_bytes() call and the first</div><div>&quot;change&quot; event.</div><div><br></div><div>Today i noticed that doing it twice in a row (&lt; one second) reduced that time for</div><div>the second call from ~600ms to ~100ms.</div><div><br></div><div>I straced it and got the small files attached.</div><div>There is a &quot;futex connection timed out&quot; that would explain quite nicely the huge</div><div>delay if the configured time out was 500ms.</div></div></blockquote><div><br></div><div>That does explain the delay, as reported by strace -T:</div><div>futex(0x239da34, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 11, {1464963229, 810966582}, ffffffff) = -1 ETIMEDOUT (Connection timed out) &lt;0.500092&gt;</div><div><br></div><div><br></div></div><br></div></div>