Why is D slower than LuaJIT?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Dec 23 06:26:54 PST 2010


On 12/23/10 6:57 AM, bearophile wrote:
> 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.

That's what the code currently does.

Andrei


More information about the Digitalmars-d mailing list