top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is <compilation optimizeCompilations="true">?

+3 votes
1,413 views

What is <compilation optimizeCompilations="true">?
One of my friends asked me to write it in web.config for increased performance. How does it work?

posted Mar 25, 2014 by Merry

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

Source : http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx
ASP.NET uses a per application hash code which includes the state of a number of things, including the bin and App_Code folder, and global.asax. Whenever an ASP.NET app domain starts, it checks if this hash code has changed from what it previously computed. If it has, then the entire codegen folder is wiped out.When this optimization is turned on via <compilation optimizeCompilations="true" />, the hash no longer takes into account bin, App_Code and global.asax. As a result, if those change we don’t wipe out the codegen folder.

answer Mar 28, 2014 by Vikram Luthra
Similar Questions
+4 votes
+2 votes

Pros n cons of using querystring over other methods!

...