Inherent code performance advantages of D over C?

Walter Bright newshound2 at digitalmars.com
Sat Dec 7 01:03:47 PST 2013


On 12/7/2013 1:30 AM, Marco Leise wrote:
> How is that easier in Java? When whole-program analysis finds
> that there is no class extending C, it could devirtualize all
> methods of C, but(!) you can load and unload new derived
> classes at runtime, too.

This can be done by noting what new derived classes are introduced by runtime 
loading, and re-JITing any functions that devirtualized base classes of it.

I don't know if this is actually done, but I don't see an obvious problem with it.


More information about the Digitalmars-d mailing list