Another performance problem

bearophile bearophileHUGS at lycos.com
Fri Dec 6 17:25:29 PST 2013


I have found another case where the code compiled with LDC2 is 
slower than the same code compiled with dmd. This time the 
performance difference seems very large. The D code (I compile it 
on 32 bit Windows):

http://rosettacode.org/wiki/Self-referential_sequence#Faster_Low-level_Version

(It's the third D entry).

The dmd compile runs in about 1.22 seconds on my PC. The ldc2 
compile is very slow.

I compile using:

dmd -O -release -inline -noboundscheck 
self_referential_sequence3.d

ldmd2 -O -release -inline -noboundscheck 
self_referential_sequence3.d
+
strip

Bye,
bearophile


More information about the digitalmars-d-ldc mailing list