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.