Inherent code performance advantages of D over C?

Manu turkeyman at gmail.com
Fri Dec 6 16:40:42 PST 2013


On 7 December 2013 08:52, Walter Bright <newshound2 at digitalmars.com> wrote:

> On 12/6/2013 2:40 PM, bearophile wrote:
>
>> And when a D compiler because of separate compilation can't de-virtualize
>> a virtual class method call.
>>
>
> Can C devirtualize function calls? Nope.
>

Assuming a comparison to C++, you know perfectly well that D has a severe
disadvantage. Unless people micro-manage final (I've never seen anyone do
this to date), then classes will have significantly inferior performance to
C++.
C++ coders don't write virtual on everything. Especially not trivial
accessors which must be inlined.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131207/c5822fd2/attachment.html>


More information about the Digitalmars-d mailing list