C++
which is best in terms of speed between vc c# and vs c++
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jan 17, 2015, 7:11 AM
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.