Force inline
Daniel Kozak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Feb 19 12:01:43 PST 2017
Dne 19.2.2017 v 20:19 berni via Digitalmars-d-learn napsal(a):
> 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.
https://dlang.org/spec/pragma.html#inline
More information about the Digitalmars-d-learn
mailing list