rdmd takes 2-3 seconds on a first-run of a simple .d script

Seb seb at wilzba.ch
Tue May 28 06:06:24 UTC 2019


On Tuesday, 28 May 2019 at 05:11:15 UTC, Andre Pany wrote:
> On Monday, 27 May 2019 at 07:16:37 UTC, BoQsc wrote:
>> [...]
>
> I can confirm, without measuring the exact timing, "dmd -run 
> test.d" feels much
> faster than "rdmd test.d". I would say 1 second instead of 2 
> seconds.
>
> Kind regards
> André

Well, that's because rdmd is an old legacy tool that runs the 
compiler twice.
Use dmd -i or rund (https://github.com/dragon-lang/rund).


More information about the Digitalmars-d-learn mailing list