Quantcast
Channel: DotNetShoutout - Stories tagged with debug
Viewing all articles
Browse latest Browse all 15

.NET – How can debug=true extend the life time of local variable

$
0
0
I am sure there are quite a few blog posts that advocate on not set debug=true in production code. The reason being the optimization and performance are turned off. In this blog post I am specifically going to demonstrate how the lifetime of a variable would be extended based on this setting by the JIT Compiler. The JIT compiler explicitly extends the lifetime of the local variables until the end of the method, which might not be required because it is not being used anymore. using System; namespace Cons...
Shout it
Only $4.95/month – Windows 2008/ASP.NET 4 Hosting!

Viewing all articles
Browse latest Browse all 15

Trending Articles