Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Why this pattern is so much faster in Chrome/V8?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
arbingersys  
View profile  
 More options Jun 25 2010, 1:08 pm
From: arbingersys <arbinger...@gmail.com>
Date: Fri, 25 Jun 2010 10:08:35 -0700 (PDT)
Local: Fri, Jun 25 2010 1:08 pm
Subject: Why this pattern is so much faster in Chrome/V8?
Hi, in implementing the following JavaScript pattern ...

function doSomething (callbackFn [, additional arguments]) {
    // Initialize a few things here...
    (function () {
        // Do a little bit of work here...
        if (termination condition) {
            // We are done
            callbackFn();
        } else {
            // Process next chunk
            setTimeout(arguments.callee, 0);
        }
    })();

}

... over a large dataset (> 5MB), there is a huge performance
difference between Chrome and the other browsers. I know V8 is
generally faster than the other engines, but I'm curious why it's so
much faster for this particular pattern?

For a detailed explanation of what I was doing, you can read the
following post on my blog --

http://www.arbingersys.com/2010/06/im-believer-chrome-javascript-fast...

I'd love to understand this better. Thanks, James


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Kay  
View profile   Translate to Translated (View Original)
 More options Jun 25 2010, 3:29 pm
From: Erik Kay <erik...@chromium.org>
Date: Fri, 25 Jun 2010 12:29:08 -0700
Local: Fri, Jun 25 2010 3:29 pm
Subject: Re: [v8-users] Why this pattern is so much faster in Chrome/V8?

Read this post for more details:
http://www.belshe.com/2010/06/04/chrome-cranking-up-the-clock/

Most of the time delta is almost certainly due to Chrome's setTimeout
implementation.  The amount of work you do inside the loop would be affected
by the JS engine and that probably explains most of the extra time that IE8
is taking over firefox.

Erik

<http://www.belshe.com/2010/06/04/chrome-cranking-up-the-clock/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
arbingersys  
View profile  
 More options Jun 25 2010, 5:33 pm
From: arbingersys <arbinger...@gmail.com>
Date: Fri, 25 Jun 2010 14:33:14 -0700 (PDT)
Local: Fri, Jun 25 2010 5:33 pm
Subject: Re: Why this pattern is so much faster in Chrome/V8?
Thanks for the link. Excellent article. James

On Jun 25, 1:29 pm, Erik Kay <erik...@chromium.org> wrote:

...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »