The System.Diagnostics.DebuggableAttribute gets added to all generated code which causes performance degradation.
Basically, when you have debug=true, the DebuggableAttribute gets added to all generated code.
Figure 9 – ILDasm output showing all the batch compiled pages with Debug=True
In the figure above, I have just double clicked on Manifest to show that System.Diagnostics.DebuggableAttribute gets added in all the code. The DebuggableAttribute controls how the runtime treats code within the module. The runtime might track extra information about generated code and it might disable certain optimizations based on the values contained within this attribute.
User Comments