Why is this D code slower than C++?
Tom S
h3r3tic at remove.mat.uni.torun.pl
Wed Jan 17 16:07:25 PST 2007
%u wrote:
> BCS Wrote:
>> here's the log
>>
>> http://www.webpages.uidaho.edu/~shro8822/trace.log
>
> That looks like the use of foreach lets the performance go down. Maybe its due to the numerous calls of delegates.
No, it shows foreach there because a lot of stuff got inlined and it's
only seen by the profiler as the foreach's body. In my experience, more
meaningful results can be obtained if -profile is used without -inline.
--
Tomasz Stachowiak
More information about the Digitalmars-d-learn
mailing list