dmd -run speed trends

Walter Bright newshound2 at digitalmars.com
Sat Dec 16 03:32:26 UTC 2023


On 12/7/2023 2:33 PM, Adam D Ruppe wrote:
> On Thursday, 7 December 2023 at 20:39:03 UTC, Witold Baryluk wrote:
>> Inspecting output of `dmd -v`, shows that a lot of time is spend on various 
>> helpers of `writefln`. Changing `writefln` to `writeln` (and adjusting things 
>> so the output is still the same), speeds things a lot:
> 
> Most of Phobos is slow to import. Some of it is *brutally* slow to import.
> 
> My D2 programs come in at about 300ms mostly by avoiding it... but even that is 
> slow compared to the 100ms that was common back in the old days.

One of our objectives for the next Phobos is to reduce the "every module imports 
every other module" design of current Phobos.


More information about the Digitalmars-d mailing list