Some views on improving the efficiency of ASP execution
Source: Internet
Author: User
Some views on improving the efficiency of ASP implementation:<br>
<br>
1, hardware problems:<br>
Server settings and configuration is undoubtedly the most important determinant of the implementation speed of ASP, but related to this problem and Mimi, no need to wordy. <br>
<br>
2. Avoid using a variety of scripting languages in one page <br>
such as: <script language="vbs"> and <script language="javascript" ><br>
Because if you mix multiple scripting languages in a script, the server will have to load multiple script engines to explain them one at a, which is bound to affect the efficiency of script execution. <br>
<br>
3, reduce the end of the script and the end of the switch <br>
such as:<tr><%=var1%><tr><%=var2%><br>
When an ASP encounters a script, it must be interpreted and sent to the front end of the terminal, and frequent switching can also cause a significant reduction in speed, especially in circular statements. <br>
The above code can be changed to <%response.write "<tr>" & Var1 & "<tr>" & var2%><br>
<br>
4, more use to compile the components <br>
The compiled component is certainly faster than the ASP code that interprets the execution. (hehe, I like doing this!) ) <br>
<br>
5, access to the database <br>
Access to the database is the most time-consuming, so flexible use of stored procedures, the correct use of conn,rs and so will be a page brush. <br>
<br>
6, the use of page elements <br>
Minimize unnecessary page elements, such as nesting of tables <br>
<br>
7, has not thought for the time being, thanks everybody to join in, please continue to do me to add. <br>
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