Newsgroups, off-topic
Joseph Wakeling
joseph.wakeling at webdrake.net
Fri Apr 23 11:00:50 PDT 2010
Joseph Wakeling wrote:
> No ... ! That was true in the original code I posted, but following
> bearophile's kind example that part of the code was updated to a form
> along the lines of,
Just for reference, here are the two pieces of code, for side-by-side
comparison. As far as I can tell the algorithms are identical; the
results are certainly identical; and the D code is significantly slower
(on the order of half the speed on my machine). I don't know what the
cause is, but my guess would be something along the lines of iterating
across or writing values to arrays in D.
The C++ code relies on the Boost libraries, another reason to like D2:
you get a lot of nice functionality built-in ... :-)
Best wishes,
-- Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dregs.d
Type: text/x-dsrc
Size: 5308 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100423/13cfb1d3/attachment-0001.d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fric.cpp
Type: text/x-c++src
Size: 6139 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100423/13cfb1d3/attachment-0001.cpp>
More information about the Digitalmars-d-learn
mailing list