Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Re: Optimizatio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 2408 of 2421
Post > Topic >>

Re: Optimization for OOP

by Tony Finch <dot@[EMAIL PROTECTED] > May 5, 2008 at 06:11 PM

torbenm@[EMAIL PROTECTED]
 (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen) wrote:
>
>The most important optimisation is to get rid of dynamic method calls.
>This can, however, be quite tricky as you can't tell if a method can
>be overridden without knowing the whole program, so it plays havoc
>with separate compilation.

The Self papers have some good descriptions of optimisation techniques
for a pure OO language. http://research.sun.com/self/papers/papers.html

In a VM-based language you can implement a tracing JIT which naturally
specializes away dynamic dispatch. Mike Pall wrote a short description
of how this works in the second half of his post to the Lua list
linked below, with some references to papers.
http://lua-users.org/lists/lua-l/2008-02/msg00051.html

Tony.
--
f.anthony.n.finch  <dot@[EMAIL PROTECTED]
>  http://dotat.at/
FITZROY SOLE: VARIABLE 4 IN EAST, OTHERWISE SOUTHERLY 5 TO 7, OCCASIONALLY
GALE 8 IN WEST SOLE. ROUGH OR VERY ROUGH IN WEST, SLIGHT OR MODERATE IN
EAST.
SHOWERS, WITH FOG PATCHES IN EAST. MODERATE OR GOOD, OCCASIONALLY VERY
POOR.




 7 Posts in Topic:
Optimization for OOP
sgkelly4@[EMAIL PROTECTED  2008-05-03 17:53:05 
Re: Optimization for OOP
torbenm@[EMAIL PROTECTED]  2008-05-05 09:45:24 
Re: Optimization for OOP
"Dmitry A. Kazakov&q  2008-05-05 18:37:26 
Re: Optimization for OOP
"lucretia9@[EMAIL PR  2008-05-05 18:51:58 
Re: Optimization for OOP
"Dmitry A. Kazakov&q  2008-05-06 09:35:25 
Re: Optimization for OOP
sgkelly4@[EMAIL PROTECTED  2008-05-06 23:13:32 
Re: Optimization for OOP
Tony Finch <dot@[EMAIL  2008-05-05 18:11:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 1:11:00 CDT 2008.