is D so slow?
Dave_member at pathlink.com
Mon Jun 16 18:23:54 PDT 2008
> If you use malloc, the default initialization does not take place, the
> memory is normally either initialized to 0, or left uninitialized (with
> values that likely are not NaN).
> So your program is fast with malloc, but in fact all this is due to a
> bug in the program that you are benchmarking, and using malloc is not
> the correct solution, the solution is to initialize all the values that
> you use.
More information about the Digitalmars-d-learn