Why is D slower than LuaJIT?

bearophile bearophileHUGS at lycos.com
Thu Dec 23 04:57:16 PST 2010


Simen kjaeraas:

> With floating-point numbers, the above solution does not always work.

The type is known at compile time, so you can split the algorithm in two with a "static if", and do something else if it's an integral type.

Bye,
bearophile


More information about the Digitalmars-d mailing list