Slow performance compared to C++, ideas?

Jonathan M Davis jmdavisProg at gmx.com
Tue Jun 4 00:48:09 PDT 2013


On Tuesday, June 04, 2013 00:12:30 Walter Bright wrote:
> On 6/3/2013 11:49 PM, deadalnix wrote:
> > We can do it in a D specific way (using our own metadata and providing an
> > optimization pas for LLVM) but most likely we won't even need to as the
> > same feature is planned to be added to clang and we can most likely
> > simply reuse clang's metadata.
> 
> There is another way.
> 
> D can be made aware that it is building an executable (after all, that is
> why it invokes the linker). If you shove all the source code into the
> compiler in one command, for an executable, functions that are not
> overridden can be made final.

Shared libraries kill that - especially those that get loaded explicitly 
rather than linked to. They could have classes which derive from classes in 
the executable which are never derived from within the executable itself.

- Jonathan M Davis


More information about the Digitalmars-d mailing list