Can DUB --combined builds be faster?
Guillaume Piolat via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Mar 14 15:19:35 PDT 2016
On Monday, 14 March 2016 at 11:50:38 UTC, Rene Zwanenburg wrote:
>
> It shouldn't make a difference for the resulting executable,
> but compilation itself may be faster. I did a little test just
> to be sure. Two DUB packages, one with:
>
> module m;
> string foo() { return "asdf"; }
>
> And the other:
> import m;
> import std.stdio;
> void main() { writeln(foo()); }
>
> When building in release mode the call to foo() gets inlined
> just fine without --combined.
Thanks for the test!
More information about the Digitalmars-d-learn
mailing list