Slow performance compared to C++, ideas?

Jonathan M Davis jmdavisProg at gmx.com
Thu Jun 6 22:08:01 PDT 2013


On Friday, June 07, 2013 01:04:40 Andrei Alexandrescu wrote:
> On 6/6/13 8:13 PM, Jonathan M Davis wrote:
> > On Thursday, June 06, 2013 20:01:09 Andrei Alexandrescu wrote:
> >> On 6/6/13 6:12 PM, Jonathan M Davis wrote:
> >>> On Thursday, June 06, 2013 14:57:00 Walter Bright wrote:
> >>>> On 6/6/2013 2:23 PM, Andrei Alexandrescu wrote:
> >>>>> (The tool I'm envisioning
> >>>>> would add final annotations or prompt the user to add them.)
> >>>> 
> >>>> Sorry, that's never going to fly.
> >>> 
> >>> It could tell the programmer which functions it _thinks_ don't need to
> >>> be
> >>> virtual, but it can't be 100% correct.
> >> 
> >> It would be 100% correct if given the entire application. You may want
> >> to take a look at the CHA paper.
> > 
> > It may be (I'd have to look at the paper), but it's my understanding that
> > dynamically loading libraries while the program would kill that when those
> > libraries can change.
> 
> I'm carefully mentioning "entire applications" every time I got a
> chance. It's not working.

I know, but the problem is that part of the application (the external library 
or plugin) could change over time rendering some of the devirtualizations 
invalid. You'd have to have some sort of guarantee that that's not going to 
happen to avoid problems.

- Jonathan M Davis


More information about the Digitalmars-d mailing list