D speed compared to C++
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Tue Mar 18 15:52:33 PDT 2008
BCS wrote:
> Frits van Bommel wrote:
>
>> However, after adding 'printf("%d", dx)' the generated code for D and
>> C++ is virtually identical, as are the timings.
>
> printf is kinda a heavy weight function. how does it compare with some
> dummy function?
It doesn't seem to make any difference, unless you count executable size.
(I passed 'dx' to a separately-compiled empty C function instead of printf)
More information about the Digitalmars-d
mailing list