Jonas Maebe wrote:

On 29 May 2005, at 13:41, Peter Vreman wrote:

Doesn't the compiler attempt to inline small functions/methods
automatically as part of its optimisation (even if the inline
directive is not specified)?


No.


The inline directive is only a hint to the compiler. The behaviour is the same in D2005.


Yes, but the poster was asking whether the compiler never decided by itself to inline something (even if no "inline" directive was specified). That's not the case currently.

well thats soemthing you should add to your to do list. Automatic inlining can deliver a signifcant performance improvement especially as delphi uses a lot of one line procedures to set property values. A fucntion call adds quite a bit of overhead (around 10+ clock cycles at a guess)

jamie.






Jonas


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel




_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to