rdmd takes 2-3 seconds on a first-run of a simple .d script
Andre Pany
andre at s-e-a-p.de
Tue May 28 09:17:08 UTC 2019
On Tuesday, 28 May 2019 at 06:06:24 UTC, Seb wrote:
> 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).
When I do remember correctly the shebang line has some issue with
arguments.
#!/usr/bin/env rdmd
Just an idea: Instead of removing rdmd, it could be an "alias" to
"dmd -i -run"?
Kind regards
André
More information about the Digitalmars-d-learn
mailing list