drastic slowdown for copies
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 29 07:34:23 PDT 2015
On 05/29/2015 06:55 AM, Momo wrote:
> Perhaps you can give me another detailed answer.
> I get a slowdown for all parts (ref, copy and move) if I use
> uninitialized floats.
Floating point variables are initialized to .nan of their types (e.g.
float.nan). Apparently, the CPU is slow when using those special values:
http://stackoverflow.com/questions/3606054/how-slow-is-nan-arithmetic-in-the-intel-x64-fpu
Ali
More information about the Digitalmars-d-learn
mailing list