Inherent code performance advantages of D over C?

Max Samukha maxsamukha at gmail.com
Sat Dec 7 04:34:12 PST 2013


On Saturday, 7 December 2013 at 00:40:52 UTC, Manu wrote:

>
> 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),

I do. Whether a function should be virtual is a design decision 
that needs to be made form the outset. Having all class functions 
freely overridable is not a good idea.

> 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.





More information about the Digitalmars-d mailing list