First thing I did to reduce the compile time is to set my "batch" flag to false
As per MSDN
the batch flag "eliminates the delay caused by the compilation required when you access a file for the first time. When this attribute is set to True, ASP.NET precompiles all the uncompiled files in a batch mode, which causes an even longer delay the first time the files are compiled. However, after this initial delay, the compilation delay is eliminated on subsequent access of the file."
Secondly I set "optmizeCompilation" flag to true, which was introduced with .net 3.5_sp1. By setting this flags I reduced my ASP.net load time after compilation from 2 minutes to 7 seconds on average.
for further info please read below MSDN link special advantage/disadvnatage of Dynamic compilation part.
http://msdn.microsoft.com/en-us/library/ms366723%28v=vs.100%29.aspxhttp://msdn.microsoft.com/en-us/library/ms366723%28v=vs.100%29.aspx
for further info please read below MSDN link special advantage/disadvnatage of Dynamic compilation part.
http://msdn.microsoft.com/en-us/library/ms366723%28v=vs.100%29.aspxhttp://msdn.microsoft.com/en-us/library/ms366723%28v=vs.100%29.aspx
Below is what my looks like in Web.config file.
<compilation defaultLanguage="C#" debug="true" batch="false" optimizeCompilations="true" />