Slow start up time of runtime

Dennis dkorpel at gmail.com
Tue Mar 20 09:44:41 UTC 2018


Simply running a "hello world.exe" takes, on my pc:

1.12s When compiled with dmd
0.62s When compiled with ldc
0.05s When compiled with dmc (C program) or dmd/ldc as a -betterC 
program

I suppose initializing the runtime takes a lot of time. When 
making a simple command line utility, half a second of delay is 
highly undesirable.

Are there ways to reduce this to below 0.1s, or should I just 
leave idiomatic D and make a betterC program?


More information about the Digitalmars-d-learn mailing list