<div dir="ltr">2016-09-21 14:32 GMT+02:00 Carlos Garcia Campos <span dir="ltr">&lt;<a href="mailto:cgarcia@igalia.com" target="_blank">cgarcia@igalia.com</a>&gt;</span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">El mié, 21-09-2016 a las 14:17 +0200, Jérémy Lal escribió:<br>
&gt; 2016-09-21 13:54 GMT+02:00 Carlos Garcia Campos &lt;<a href="mailto:cgarcia@igalia.com">cgarcia@igalia.com</a>&gt;:<br>
&gt; &gt; El mié, 21-09-2016 a las 12:05 +0200, Jérémy Lal escribió:<br>
&gt; &gt; &gt; I noticed version 2.14 is significantly slower to load several<br>
&gt; &gt; web<br>
&gt; &gt; &gt; views one after another.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; By load time i mean the time between a call to<br>
&gt; &gt; &gt; `webkit_web_view_load_uri()` and the first<br>
&gt; &gt; &gt; WEBKIT_LOAD_STARTED change event.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; In version 2.12 it takes half a second for the first load and<br>
&gt; &gt; less<br>
&gt; &gt; &gt; than 100ms<br>
&gt; &gt; &gt; when loading more views.<br>
&gt; &gt; &gt; in version 2.14 it always takes the same time.<br>
&gt; &gt;<br>
&gt; &gt; So, you mean it takes more time the first load on every web view,<br>
&gt; &gt; right? subsequents loads in the same web view are not slow, right?<br>
&gt; &gt;<br>
&gt; &gt; If that&#39;s the case, yes, it&#39;s somehow expected, there&#39;s more work<br>
&gt; &gt; to do<br>
&gt; &gt; know when setting up web views, the web process has to create the<br>
&gt; &gt; compositing thread and wait for it to start rendering.<br>
&gt;<br>
&gt; Yes it is (much) faster to load again an url on an already &quot;loaded&quot;<br>
&gt; web view.<br>
&gt; Still, half a second seems to be an eternity.<br>
<br>
</span>Yes, we will try to improve that.<br>
<span class=""><br>
&gt; I&#39;m using webkitgtk quite a lot for server-side DOM &quot;prerendering&quot;, a<br>
&gt; bit like<br>
&gt; what is chromium&#39;s headless branch for, and i wonder if it&#39;s<br>
&gt; something<br>
&gt; that is going to happen in webkitgtk as well (i.e. the ability to<br>
&gt; just disable<br>
&gt; any kind of graphic computations, let alone the ability to not use<br>
&gt; gtk).<br>
<br>
</span>Yes, I don&#39;t see why not. For now you could try disabling accelerated<br>
compositing using WEBKIT_DISABLE_<wbr>COMPOSITING_MODE env var.<br></blockquote><div><br></div><div>Very useful for that server use case, the init overhead has dropped to &lt; 100ms.</div><div><br></div><div>Jérémy</div></div><br></div></div>