web.config batch=“false”

后端 未结 4 1899
灰色年华
灰色年华 2021-02-07 02:20

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

4条回答
  •  温柔的废话
    2021-02-07 02:44

    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

提交回复
热议问题