Bài đăng

Hiển thị các bài đăng có nhãn 50 Tips to Boost ASP.NET Performance

50 Tips to Boost ASP.NET Performance

50 Tips to Boost ASP.NET Performance When we are looking to optimize the performance of  web applications we should keep in mind about Memory Load, Processor Load and Network Bandwidth. Here are 50  best practices to improve the performance and scalability of ASP.NET applications. 1.  Page.IsPostBack Property Keep code which only needs to be loaded once inside an IsPostBack block. if(!IsPostBack) { BindDropDownList(); LoadDynamicControls(); } As a result there will be no unnecessary database hits and server processing. 2.  Enable Buffering A buffer is a region in main memory to store temporary data for input and output .Data retrival from memory is faster than data retrieval from disk. We should leave buffering on unless there is any specific reason to turn it off. By default buffering is enable. 3.  Remove unused HttpModules There may be lot of HttpModules in Machine.Config that are not actually required for a particular application. In this scenario...