Is C++/CLI faster than C#

c#, c++-cli

Solution

Not necessarily. However, C++/CLI takes away much of the syntactic sugar around non-performant ways of doing things that is present in C# (boxing for example).

Also, C++/CLI allows you a much more clean interop with unmanaged code, actually allowing you to mix managed / unmanaged code, which is a performance crucial environment may be of benifit.

EDIT:

See this post for some of the differences: http://msdn.microsoft.com/en-us/library/ms379617(VS.80).aspx

Problem

Is C++/CLI faster than C#? In which type of operations is it faster?

Original source

Related problems