in precompiled asp.net website - Does it matter?

前端 未结 3 1816
灰色年华
灰色年华 2021-02-05 14:03

I\'m deploying a precompiled and all-page-merged website using Web Deployment Projects on Visual Studio 2008. Note that all assemblies and projects have been compiled in Release

3条回答
  •  借酒劲吻你
    2021-02-05 15:05

    Check out the excellent links below:

    • ASP.NET Memory: If your application is in production… then why is debug=true
    • Don’t run production ASP.NET Applications with debug=”true” enabled

    Basically:

    • Your code will run slower because of the overhead of debugging support.
    • Scripts and images are not cached on the client side because you don't want things to be cached in development if you're constantly making changes and debugging.
    • Requests are not timed out. Again when you're debugging your code, you don't want to get a request timeout.

    None of the above is desirable. You will find more disadvantages in the above links.

提交回复
热议问题