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.html

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

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to