Pay as you go is really going to make a difference

Steven Schveighoffer schveiguy at gmail.com
Fri Jan 24 13:06:33 UTC 2020


On 1/24/20 4:52 AM, Johan Engelen wrote:
> On Thursday, 23 January 2020 at 00:20:00 UTC, IGotD- wrote:
>> On Wednesday, 22 January 2020 at 23:51:23 UTC, FogD wrote:
>>>
>>> A recent comparison of languages from this perspective.
>>>
>>> https://drewdevault.com/2020/01/04/Slow.html
>>
>> It would be interesting to know what that huge number of system calls 
>> really do, especially when it comes to D which has around 150.
> 
> Indeed. Also to figure out why LDC's binary calls 31 more than DMD's 
> binary.
> Much appreciated if someone could repeat the test and post a list of all 
> syscalls being made.

Most likely it's the runtime startup. Obviously sbrk quite a bit, but 
any runtime initialization (thread startup, mutex initialization, etc) 
are all going to go in there. Think of what the GC has to do!

A good test would be to do a betterC version with printf and see what 
the difference is (technically it should be the same as the C version).

-Steve


More information about the Digitalmars-d mailing list