web.config batch="false"


Question

What is the purpose of adding the batch="false" in the compilation tag in ASP.NET 1.1?

1
20
3/3/2010 2:04:13 PM

Accepted Answer

MSDN says the purpose of 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.

Having it set to false will probably make it compile faster the first time, but slower subsequent times, and I believe this applies to 1.1 as well.

MSDN Link

18
5/19/2015 8:44:52 AM

I know this question is closed (and about v1.1) but the batch attribute is actually defaulted to True in .Net 2.0 onwards.

http://msdn.microsoft.com/en-us/library/s10awwz0%28VS.80%29.aspx


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon