C++
which is best in terms of speed between vc c# and vs c++
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 17, 2015, 2:11 AM EST
However, if you're talking about unmanaged C++, this definitely has the edge in execution speed over C# since the compiler produces native code (not MSIL which needs to be converted to native code 'on the fly') and can certainly apply more optimizations to that code than the 'just in time' compiler can.
The speed difference is likely to reduce or disappear altogether in future now that '.NET Native' is with us. Currently, this can only be used to 'speed up' Windows Store apps but it is to be extended to other types of .NET applications as well. Basically, the .NET Native compiler produces native code rather than MSIL and shares optimization technology with VC++.
Of course, execution speed is not the 'be all and end all' of application development. You can certainly develop applications more quickly with C# than you can with C++ as, for one thing, you don't have to worry about memory management with the former. Unless you are writing games, 'real time' applications or 'low level' stuff such as device drivers, ease of development and maintenance combined with reasonable execution speed may be a more important factor in deciding which language to use.