News for hackers. Stuff that matters.
Re:Benchmark: C++ vs C# by shin_lao on Monday June 20, 2011 @01:30PM (#2675122)
This benchmark is totally wrong as you can read in the comments of the page.

Basically he didn't turn on all optimizations on the C++ program and used the "slow but secure" version of the Microsoft STL.

Also his GenericSum uses array in C++ and lists in C#, so the C++ has to reallocate at each append.

I could go on for long, I appreciate the intent, but all you need to know is that Microsoft gave up on using C# everywhere because it's damn too slow.

Re:Benchmark: C++ vs C# by nxn on Monday June 20, 2011 @01:42PM (#2675171)
>> but all you need to know is that Microsoft gave up on using C# everywhere because it's damn too slow.

Got any proof of that?

Re:Benchmark: C++ vs C# by queensnake on Monday June 20, 2011 @02:23PM (#2675319)
Not proof but, fwiw I read an article saying that.
Re:Benchmark: C++ vs C# by shin_lao on Tuesday June 21, 2011 @04:54AM (#2677953)
When they started Vista they wanted to go .NET all the way and had to go back using more native code.
Re:Benchmark: C++ vs C# by chrisbennet on Monday June 20, 2011 @05:26PM (#2676157)
>I could go on for long, I appreciate the intent, but all you need to know is that Microsoft gave up on using C# everywhere because it's damn too slow.

As a data point, a friend of mine works for Microsoft on one of the Blend products. He's using C# for at least some of his work.