C# debug vs release performance

Posted by sagie on Stack Overflow See other posts from Stack Overflow or by sagie
Published on 2010-03-15T09:18:05Z Indexed on 2010/03/15 9:19 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

Hi.

I've encountered in the following paragraph:

“Debug vs Release setting in the IDE when you compile your code in Visual Studio makes almost no difference to performance… the generated code is almost the same. The C# compiler doesn’t really do any optimisation. The C# compiler just spits out IL… and at the runtime it’s the JITer that does all the optimisation. The JITer does have a Debug/Release mode and that makes a huge difference to performance. But that doesn’t key off whether you run the Debug or Release configuration of your project, that keys off whether a debugger is attached.”

The source is here and the podcast is here.

Can someone direct me to a microsoft an article that can actualy prove this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about debug