Monday, April 11, 2011

Improving the ASP.Net application performance

Few points to keep in mind while developing and deploying ASP.Net application.

Create new application pool for your site and ensure that only your application uses this pool.

In machine.config file , set the “retail=true” which will set the debug and tracing options to false . Disabling debug and tracing features for production application will improve the performance.

Implement Ajax wherever possible, this will reduce the full page refresh and increases the application performance by refreshing the parts of the page.

Implement Client side validations instead of using server validation controls. This will decrease the round trips to the server.

Disable the view state for entire page when not needed. Using view state simply will become overhead for webpage and it impacts the page load time.

Don’t store larger amounts of data in sessions . Using sessions will increase the memory consumption at server and brings down the server performance.

Use try/catch/finally blocks only when you are implementing complex functions . Use of exception handling for every simple function will hit the performance.


















No comments: