Remove real type

bearophile bearophileHUGS at lycos.com
Thu Apr 22 16:51:44 PDT 2010


BCS:
> If you have no special reason to use float or double and are not IO or memory 
> space bound, use real. Every machine I know the details of will use it in 
> the FPU so the only general advantage to not using it is IO speed and data 
> size.

Take one of the little ray-tracers written in D from my site, test its running speed compiled with ldc, replace doubles with reals, and time it again. You will see a nice performance difference. LDC FP performance is not good if it doesn't use SSE registers.

Bye,
bearophile



More information about the Digitalmars-d mailing list