7 ms·
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 "slo
by shin_lao 15y ago
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.
- nxn 15y ago>> 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?
- queensnake 15y agoNot proof but, fwiw I read an article saying that.
- shin_lao 15y agoWhen they started Vista they wanted to go .NET all the way and had to go back using more native code.
- chrisbennet 15y ago>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.