[英]How to speed up the development experience with ASP.NET?
I've gotten thrown into a WebForms ASP.NET 3.5 project on VS2008. 我已经进入VS2008上的WebForms ASP.NET 3.5项目。 The solution has 5 projects, so not too large.
该解决方案有5个项目,因此不能太大。 One thing that really annoys me is how long it takes go to from F5 to an actual web page that I can do something about (good 15-20 seconds).
真正让我烦恼的一件事是,从F5到我可以做某事的实际网页要花多长时间(好15到20秒)。 The box I am on is relatively recent - everything else on it feels really snappy.
我正在使用的盒子是相对较新的-它上面的所有其他内容都感觉非常活泼。
What are some of the things I can do to speed up this process? 我可以做些什么来加快这个过程?
If you don't need to debug, don't do it. 如果您不需要调试,请不要这样做。 What I do is start the project without debugging (ctrl + F5).
我要做的是在不调试的情况下启动项目(Ctrl + F5)。 you've now got a window attached to VS.
现在,您已将窗口附加到VS。 All you need to do now is rebuild your code when you make code changes, which is much quicker.
您现在要做的就是在更改代码时重新构建代码,这要快得多。
Simon 西蒙
Set optimizeCompilations=”true” : When you experience very slow performance on an initial request to an ASP.NET Web site after you change the App_Code folder, the bin folder, or the Global.asax file.Turning on this flag will improve the performance. 设置optimizeCompilations =“ true”:当更改App_Code文件夹,bin文件夹或Global.asax文件后,在对ASP.NET网站的初始请求中遇到非常慢的性能时。启用此标志将提高性能。
Use Combress (http://combres.codeplex.com/) to minify css and javascript files. 使用Combress(http://combres.codeplex.com/)来缩小CSS和javascript文件。
Enable Gzip compression to reduce the network traffic on the network.This may reduce the network traffic by more than 50%. 启用Gzip压缩以减少网络上的网络流量,这可能会减少50%以上的网络流量。
These things will definitely improve the performance of the site. 这些事情肯定会提高网站的性能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.