Small part of a program : d and c versions performances diff.

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 9 07:15:07 PDT 2014


Larry:

> @Bearophile: just tried. No dramatic change.
>
> import core.memory;
>
> void main() {
> GC.disable;
> ...
> }

That just means disabling the GC, so the start time is the same.
What you want is to not start the GC/runtime, stubbing it out... 
(assuming you don't need the GC in your program).

I think you can stub out the runtime functions defining few empty 
extern(C) functions, but I've never had to do it (saving 0.015 
seconds is not important for my needs), so if you don't know how 
to do it, you have to ask to others.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list