Inexplicable LDC vs GDC speed difference

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Fri Feb 22 10:59:09 PST 2013


On 02/19/2013 09:34 AM, Johannes Pfau wrote:
> I posted this to our bugzilla, I'm not sure if I'll have the time to
> look at this one.
>
> http://gdcproject.org/bugzilla/show_bug.cgi?id=37

Just to note -- with your pull request #50 now included in GDC, things speed up 
very slightly.  Removing the const from the Julia value code, results become 
comparable to g++ and the C++ implementation (i.e. about 4.3 s for the 'double' 
case).

LDC still produces a faster executable for this particular code, but then, 
clang++ also produces a faster executable than g++.


More information about the D.gnu mailing list