Updates:
Summary: Function literals are optimized less aggressively
Owner: [email protected]
Comment #1 on issue 293 by [email protected]: Function literals are
optimized less aggressively
http://code.google.com/p/v8/issues/detail?id=293
Thanks for the report.
The issue is that V8 does not (currently) optimize function literals as
aggressively
as other functions. The addition operation in the expression 'rc += df()'
is inlined
in the faster case. If you instead write:
FudgeSystem = (function() {
var fudge = {};
fudge.rollDF = rollDF;
return fudge;
})();
you will get the faster version. This is a bug.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---