ASP. NET program performance optimization (1)

Source: Internet
Author: User
Tags try catch
1. performance parameters:
Throughput;
Response time;
Execution time;
Scalability;
Ii. Common performance optimization methods and techniques:
1. Use page_load and page. ispostback with caution, Avoid unnecessary operations ;
2. disable unnecessary session statuses. <% @ page enablesessionstate = "false" %>
3. Do not use server control if necessary;
4. Disable viewstate if not necessary
<Asp: gridview id = "gridview1" runat = "server" enableviewstate = "false"> </ASP: gridview>
<% @ Page enableviewstate = "false" %>
5. Use it with caution during try catch.Exception(ExceptionWill increase performance consumption);
6. Try not to use dynamic data types;
7. Use stored procedures as much as possible for complex data operations;
8. Do not use dataset for read-only data access, but use dataread;
9. Disable dataread and connection;
10. Disable ASP. NET debug mode.
11. Use cache: page output cache and data cache.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.