I made an information publishing system and encountered a headache in performance.

Source: Internet
Author: User

The company took an EIP project and assigned me a uniform information publishing system in the task. When the volume of published information is large
(> 10000 words) it was fast and slow (> 25 seconds), which was intolerable. After searching for a long time, I finally found the cause.

Because Asp.net performs a security check by default, the submitted data cannot include HTMLCodeThe information published by this system is stored in HTML format. Therefore, an error is reported when the system is submitted, finally, I wrote a conversion method to replace all the "<"> "tags with other characters. The problem lies in this method, because the large amount of text is fully formatted, therefore, the information contains a lot of HTML tags, and the time required for publishing the information is basically converted (fortunately I found it, or I will be scolded by the boss ). On the <% @ Page %> Added validaterequest = "false" to prevent the page from performing security checks. The information is submitted in HTML format. OK! Now the release is faster than 10 seconds.

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.