System programming in D (Was: The God Language)

so so at so.so
Fri Dec 30 18:35:24 PST 2011


On Sat, 31 Dec 2011 04:30:01 +0200, Walter Bright  
<newshound2 at digitalmars.com> 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?


More information about the Digitalmars-d mailing list