dmd -run speed trends
    Walter Bright 
    newshound2 at digitalmars.com
       
    Sat Dec 16 03:31:05 UTC 2023
    
    
  
On 12/7/2023 12:39 PM, 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:
> 
> 729.5 ms -> 431.8 ms (dmd 2.106.0)
> 896.6 ms -> 638.7 (dmd 2.098.1)
> 
> Considering that most script like programs will need to do some IO, `writefln` 
> looks a little bloated (slow to compile). Having string interpolation would 
> probably help a little, but even then 431 ms is not that great.
It would be illuminating to compare using printf rather than writefln.
    
    
More information about the Digitalmars-d
mailing list