Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an MFC application on which I would like to integrate some .Net features; it is a server application that has to be as much performant as possibile, and I would like to be able to use some custom controls and other utility libraries written in C#.
The question is: enabling the /clr compiler option implies anything on the performance of the preexisting native features?
Posted

1 solution

Quote:
It is a server application that has to be as much performant as possibile
It all depends on the exact meaning of such a sentence.

If you really need 'maximum performance' then every fancy library would have an impact.

On the other hand, managed code is, in most cases, 'efficient enough' (and usually what matters is the algorithm, not the language).

The final answer comes testing: add some .NET components to your application and compare the performance of the 'CLR enabled' software against the 'fully native' one.
 
Share this answer
 
Comments
wubygtr 28-Oct-14 7:37am    
Thanks for your answer. It is my intention to test this, after clarifying if the topic is not already been addressed :) to be more specific, I'd like to know if just enabling the compiler option leads to some kind of performance issue on any existing procedure implemented using native code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900