vectorization of a simple loop -- not in DMD?

ryuukk_ ryuukk.dev at gmail.com
Tue Jul 12 10:28:46 UTC 2022


On Tuesday, 12 July 2022 at 09:18:02 UTC, Siarhei Siamashka wrote:
> On Tuesday, 12 July 2022 at 07:58:44 UTC, bauss wrote:
>> You don't think this difference is huge? DMD is over 2x as 
>> fast.
>
> I think that DMD having more than 10x faster compilation speed 
> in ryuukk_'s project shows that there is likely either a 
> misconfiguration in DUB build setup or some other low hanging 
> fruit for LDC. This looks like an opportunity to easily improve 
> something in a major way.

You where right! looks like i accidentally put a dflags (O3) into 
the debug config for ldc!


```
$ time dub build -f --compiler=ldc2
Performing "debug" build using ldc2 for x86_64.
game ~master: building configuration "desktop"...
Linking...
    Creating library 
.dub\build\desktop-debug-windows-x86_64-ldc_v1.30.0-beta1-4B08B3C693144187830F0F15271A53A3\game.lib and object .dub\build\desktop-debug-windows-x86_64-ldc_v1.30.0-beta1-4B08B3C693144187830F0F15271A53A3\game.exp
LINK : warning LNK4098: defaultlib 'libvcruntime' conflicts with 
use of other libs; use /NODEFAULTLIB:library

real    0m4.521s
user    0m0.000s
sys     0m0.000s
```

Incremental:
```
$ time dub build --compiler=ldc2
Performing "debug" build using ldc2 for x86_64.
game ~master: building configuration "desktop"...
Linking...
    Creating library 
.dub\build\desktop-debug-windows-x86_64-ldc_v1.30.0-beta1-4B08B3C693144187830F0F15271A53A3\game.lib and object .dub\build\desktop-debug-windows-x86_64-ldc_v1.30.0-beta1-4B08B3C693144187830F0F15271A53A3\game.exp
LINK : warning LNK4098: defaultlib 'libvcruntime' conflicts with 
use of other libs; use /NODEFAULTLIB:library

real    0m4.516s
user    0m0.015s
sys     0m0.000s
```

Here updated result, down to 4.5sec




More information about the Digitalmars-d-learn mailing list