W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2011

[whatwg] Proposal for separating script downloads and execution

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 26 May 2011 05:10:37 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1105260450420.26539@ps20323.dreamhostps.com>
On Wed, 25 May 2011, Aryeh Gregor wrote:
> # [02:21] <jamesr> the only thing we do on a chunk of script in v8
> currently before starting to execute code is to essentially brace
> match

It's presumably a whole heck of a lot more complex than brack matching:

   function test () {
     // ...megabytes of perfectly fine code...
     a b;

...had better not alert anything.

What we really need though is perf data, e.g. comparing how browsers 
handle code such as:

    var times = [];
    times.push(new Date());
    times.push(new Date());
    function test() {
      // ...megabytes of complicated code...
    times.push(new Date());
    times.push(new Date());

What are the deltas between all the times in various browsers?

I would expect the deltas to be a high number, 0, and a high number 
respectively. However, if it is different then the assumptions that 
underlie the spec are wrong, and there's probably something we can work on 
to make the Web better.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 25 May 2011 22:10:37 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:33 UTC