On Sat, 31 Dec 2011 04:30:01 +0200, Walter Bright <[email protected]> wrote:

On 12/30/2011 5:59 PM, so wrote:
Well not them but another dummy function, i didn't think it would differ this much.

It differs that much because once it is inlined, the optimizer deletes it because it does nothing.

I don't think it is a valid test.

Yes i can see from asm output but are we talking about same thing?
@inline IS all about that. We can try it with any example, one outperforming the other is not the point.

for(....)
   fun()

With or without @inline i know fun should/will get folded away, then why should i pay for the function call?

Reply via email to