Comment #2 on issue 293 by sgbeal: Function literals are optimized less  
aggressively
http://code.google.com/p/v8/issues/detail?id=293

i don't know what you guys did, but in r1668 this is no longer a problem -  
the call
speed for members would appear to be only about 1.5x that of non-members  
now:

With non-member function:

step...@jareth:~/cvs/v8-juice/js-snippets/gaming$ time v8-juice-shell  
FudgeSystem.inc.js
Rolling 10000 sets of 4dF...
Total for 10000 rolls of 4dF = 76 Average = 0.0076
...
real    0m0.064s
user    0m0.060s
sys     0m0.004s


With member function:

step...@jareth:~/cvs/v8-juice/js-snippets/gaming$ time v8-juice-shell  
FudgeSystem.inc.js
Rolling 10000 sets of 4dF...
Total for 10000 rolls of 4dF = -285 Average = -0.0285
...
real    0m0.099s
user    0m0.088s
sys     0m0.004s


*Some* penalty for members is expected, and these numbers are (IMO) quite  
impressive.

As far as i'm concerned, this issue can be closed.

:-D

--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to