Reduce has dreadful performance?

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 18 06:24:19 PDT 2015


On Thursday, 18 June 2015 at 13:20:04 UTC, John Colvin wrote:
> On Thursday, 18 June 2015 at 10:27:58 UTC, Russel Winder wrote:
>> [...]
>
> What you've forgotten is to turn on your optimisation flags. 
> Even DMD gets the first 2 vaguely right with -O -inline -release
>
> gdc is able to vectorize all 3 examples if you give it -Ofast
>
> The 3rd one does appear to be a bit slower in all cases, not 
> sure why right now.

third one was faster for me on ldc, fwiw


More information about the Digitalmars-d mailing list