Slow performance compared to C++, ideas?

Jonathan M Davis jmdavisProg at gmx.com
Thu Jun 6 13:30:53 PDT 2013


On Thursday, June 06, 2013 15:56:24 Andrei Alexandrescu wrote:
> On 6/6/13 3:37 PM, Walter Bright wrote:
> > On 6/6/2013 12:31 PM, Andrei Alexandrescu wrote:
> >> I think class hierarchy analysis is very doable for whole D projects.
> >> You just
> >> pass the tool all files in the project and it does its thing.
> >> 
> >> http://www.cs.ucla.edu/~palsberg/tba/papers/dean-grove-chambers-ecoop95.p
> >> df
> >> 
> >> 
> >> This would actually be a great GSoC-style project, distributable via
> >> tools/.
> > 
> > The trouble, as has been pointed out before, is shared libraries.
> 
> I wrote:
> 
> "I think class hierarchy analysis is very doable for whole D projects."
> 
> Whole. Projects.
> 
> WHOLE PROJECTS.
> 
> WHOLE. PROJECTS.
> 
> Worked on by Top. Men.

LOL. Yes, well. That's certainly much closer, but if the shared library 
changes and later derives more types than it did before. And since shared 
libraries can be swapped out, that could break the optimizations that the tool 
did, so you'd have to run the tool over the whole thing again. So, it's 
definitely an idea with potential, but I don't think that it could be 
guaranteed to work in all cases, and the programmer likely have to be aware of 
when it didn't work in order to avoid some nasty bugs.

- Jonathan M Davis


More information about the Digitalmars-d mailing list