Slow performance compared to C++, ideas?

finalpatch fengli at gmail.com
Sun Jun 2 02:32:04 PDT 2013


Hi Joseph,

The flags I used 
OSX LDC: -O3 -release
WIN GDC: -O3 -fno-bounds-check -frelease

Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> writes:

> On 06/01/2013 04:58 PM, finalpatch wrote:
>> However I retested on a windows 7 machine with GDC compiler and the results were
>> very different.
>> 
>> orignal: 545ms
>> * the first 2 optimizations which helped the most on OSX with LDC has almost
>> zero effect
>> * hand unroll overloaded vector arithmetic operators - 280ms (265ms improvment)
>> * "final" to all class methods - 200ms (80ms improvment)
>
> What flags were you using with each compiler?
>

-- 
finalpatch


More information about the Digitalmars-d mailing list