Hi,
Since we were discussing function calls performance in another thread, I was wondering if it would be feasible to implement functions and methods inlining in the compiler. Not automatically (I think you Andreas suggested it a while ago when discussing JITs), but when declared by the programmer, typically with the "inline" keyword:
class MyClass
{
inline void DoSomething()
{
// do something to be inlined
};
}
This would allow scripter to write computational-intensive code with optimal performance and yet keep the code clean and easy to read (manually inlining results in lots of code duplication).
Since it implies changing a function call into duplicated code in another context, I am not sure if it is something that can be done without too much impact...