On Thu, Mar 8, 2012 at 12:19 PM, David Bruant <[email protected]> wrote:
> Le 08/03/2012 18:02, Maël Nison a écrit : > > Shouldn't native versions be more efficients ? >> > I heard V8 is on the path of self-hosting (writing standard functions in > JavaScript itself) as much as it can (can anyone confirm?). > Confirmed. http://code.google.com/p/v8/source/browse/trunk/src/array.js > > It seems that in some cases, there is actually no benefit in writing in > C++ and a JavaScript-based solution can be 60% faster [1] [2]. This example > is DOM, but I wouldn't be surprised if it was true for some ECMAScript > functions. > > Also, specifically, I would intuit that performance should not be that > different for mutation methods while it does change for methods that create > a new array since the engine can pre-allocate of correct size right away > (control that we don't have in JavaScript). > > Regardless, performance had changed so quickly over tha last years that > I'm not sure any guess on performance is really accurate for long. > > David > > [1] > https://twitter.com/#!/**jdalton/status/**165618550868946944<https://twitter.com/#!/jdalton/status/165618550868946944> > [2] > https://twitter.com/#!/**jdalton/status/**165914543418126336<https://twitter.com/#!/jdalton/status/165914543418126336> > > ______________________________**_________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss> >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

