<div class="gmail_quote"><div class="gmail_quote"><div class="im">On Wed, May 13, 2009 at 1:11 AM, Maciej Stachowiak <span dir="ltr">&lt;<a href="mailto:mjs@apple.com" target="_blank">mjs@apple.com</a>&gt;</span> wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
On May 13, 2009, at 12:18 AM, Meryl Silverburgh wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Does webkit cache squirrelfish bytecode? For example, multiple can use<br>
the same javascript file (e.g. common javascript libraries, like<br>
jquery, or same domain uses some common javascript file across<br>
different pages for the same domain).<br>
<br>
When webkit parses the JS file and builds squirrelfish-bytecode,  does<br>
it cache it ? so that subsequence loading of the same js file will<br>
skip the js compile process?<br>
</blockquote>
<br></div>
We don&#39;t currently cache the bytecode (or the native code). It is an option we have considered, however, currently, code generation is a trivial portion of JS execution time (&lt; 2%), so we&#39;re not pursuing this at the moment.</blockquote>

<div><br></div></div><div>What does the &lt; 2% number reflect?  The percent of time while running a particular benchmark or something?</div><div><br></div><div>I totally believe that the speed of runtime is not really affected by it, but what about page load latency?  Compile time is a non-trivial component of load time for most JIT compilers I&#39;ve heard of.</div>

</div>
</div><br>