Optimize my code =)
bearophile
bearophileHUGS at lycos.com
Tue Feb 18 00:50:22 PST 2014
Stanislav Blinov:
>>> LDC yields roughly the same times.
>>
>> This is surprising.
>
> To me as well. I haven't yet tried to dig deep though.
I have compiled your code with (a single module, 32 bit Windows):
dmd -wi -vcolumns -O -release -inline -noboundscheck matrix3.d
ldmd2 -wi -O -release -inline -noboundscheck matrix3.d
DMD:
multiplicationTest ...
Time required: 4 secs, 665 ms, 452 ╬╝s, and 2 hnsecs
LDC2:
multiplicationTest ...
Time required: 2 secs, 522 ms, and 747 ╬╝s
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list