Force inline

Satoshi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 19 13:20:32 PST 2017


On Sunday, 19 February 2017 at 19:19:25 UTC, berni wrote:
> Is it possible to force a function to be inlined?
>
> Comparing a C++ and a D program, the main difference in speed 
> (about 20-30%) is, because I manage to force g++ to inline a 
> function while I do not find any means to do the same on D.


Or make it as template, maybe...


void foo()() {

}


More information about the Digitalmars-d-learn mailing list