Slow performance compared to C++, ideas?

Marco Leise Marco.Leise at gmx.de
Sat Jun 1 14:14:47 PDT 2013


Am Sat, 01 Jun 2013 06:49:47 +0200
schrieb "deadalnix" <deadalnix at gmail.com>:

> On Saturday, 1 June 2013 at 02:58:59 UTC, Juan Manuel Cabo wrote:
> >
> > Making everything final by default would IMO kind of break
> > automated mock classes generation for unit testing,
> > automatic proxy class generation for DB entities, and
> > other OOP niceities.
> >
> 
> Yeah, everybody seems to ignore that. OOP is slow in general, due 
> to excess of indirections, so if its loose its benefits . . .

Does it really change anything? Today people forget the
final keyword and tomorrow they forget the virtual
keyword? :D

What you prefer here depends on what languages you are used to
do (e.g. C++, Java), how much you use OOP for anything, your
use of unittesting and mock objects, your need for speed etc.

In any case D is often compared to C++ for memory management,
speed, executable size etc. And D is trying to appeal to too
many different fields of software development to be perfect
for any of them. So maybe this should just be solved in a
democratic vote after hearing the pros and cons. :)

-- 
Marco



More information about the Digitalmars-d mailing list