Re: performance of OO dispatch in inner loops

2008-03-26 Thread Brendan Eich
On Mar 26, 2008, at 11:13 AM, Waldemar Horwat wrote: David Teller wrote: ES4 has multi-methods, which are harder to optimize, Multi-methods are gone from ES4. This is based on the row (numbered 109) of red interrupted so far only by Mozilla's green at

Re: performance of OO dispatch in inner loops

2008-03-25 Thread David Teller
On Fri, 2008-03-21 at 13:45 -0700, Brendan Eich wrote: You really should read the papers, and Andreas Gal's blog. Probably. I'm not an expert in [dynamic] optimisations, my line of work is mostly related to static analysis. Do you suggest any specific papers other than the blog ? Runtime

performance of OO dispatch in inner loops

2008-03-21 Thread ToolmakerSteve98
was [Re: Any discussion of compact subset for mobile devices?] Brendan Eich wrote: Why do you believe static typing is necessary for performance? Just curious. I woke up in the middle of night, remembering one detail we hit in 1992. Advanced OO programming styles lead to inner loops that

Re: performance of OO dispatch in inner loops

2008-03-21 Thread David Teller
I'm not sure about necessary but for useful, see for instance _Practical Soft Typing_, by Andrew Wright. Performance analysis for softly typed Scheme show that, on the benchmark, 20% to 50% of the time of the execution was spent performing run-time checks which may be automatically removed.

Re: performance of OO dispatch in inner loops

2008-03-21 Thread ToolmakerSteve98
ToolmakerSteve98 wrote: Brendan Eich wrote: Why do you believe static typing is necessary for performance? Just curious. I woke up in the middle of night, remembering one detail we hit in 1992. Advanced OO programming styles lead to inner loops that contain (potentially subclassed)