0

I read that pre comipiling a website using aspnet_compiler speeds up the website (by mitigating the delays due to worker process restart). But when you deploy using an msi, isn't the deployed stuff already in the pre compiled (MSIL) form?

2 Answers 2

2

Yes when you deploy your website using an MSI you first publish it, which precompiles it entirely. Thus, saving some time on the first hit (regardeless of the value of Compilation batch).

This is how we actually deploy websites at work. Visual Studio's Web Setup project is very straightforward. You just add the precompiled website as content, set the virtual directory name and that's it! you get a next-next-next type of wizard as installation file

Sign up to request clarification or add additional context in comments.

Comments

2

When Compilation batch is True, 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. The default is True.

http://msdn.microsoft.com/en-us/library/s10awwz0.aspx

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.