Why is D significantly slower than C# in this instance?

Salih Dincer salihdb at hotmail.com
Wed Apr 12 20:28:26 UTC 2023


On Wednesday, 12 April 2023 at 17:16:55 UTC, H. S. Teoh wrote:
> On Wed, Apr 12, 2023 at 07:35:29AM -0700, Ali Çehreli via 
> Digitalmars-d wrote:
>> On 4/12/23 06:24, bachmeier wrote:
>> 
>> > Ironic that it takes so long to do a proper performance 
>> > comparison when the only reason to do it is to save time.
>> 
>> I sometimes have the same concern for optimized builds: Will 
>> the number of times a program will ever be executed warrant 
>> the time lost on optimized builds? :)
> [...]
>
> Depends on the program and how it will be used.
>
> For one-off shell-script replacements, the answer is no, it's 
> not worth the bother.  For this kind of task, what you want is 
> fast turnaround time:

I agree with all your views. But you are missing something! So is 
the questioner:

C sharp is optimized to be compatible with W$. So if you are 
using windowze, the comparison you make is similar to comparing 
jet-ski and motorcycle.

SDB at 79


More information about the Digitalmars-d mailing list