Improving program performance is a tricky thing to do. In particular, Internet-related programs, such as ASP programs, restrict the performance of many factors, such as Web servers, TCP/IP networks and database servers. Most of these are hardware-related. In fact, in software, good program design method and correct parameter configuration can also improve the performance of the program, sometimes in the same situation as long as the change of a parameter, program execution efficiency can be greatly improved. This article will try to do some research in this area.
I. Factors that affect performance
The performance of the ASP program is mainly decided by the following 2 major aspects:
Efficiency of 1.HTML page execution
2. Reaction time, wherein the reaction time is mainly subject to the following elements:
(1). Efficiency of ASP page execution
(2). Database factors
Let's discuss it in detail below.
Two. Detailed discussion
1. Factors that affect HTML
The efficiency of HTML page execution is a pure client issue. The main factor affecting this problem is the client's hardware and his network bandwidth. In addition, some of the following factors can also affect the efficiency of HTML page execution.
(1). Image factors. Try to avoid using images on HTML pages. This is because when a browser requests a page, if the page contains n images, this will allow the browser to request n calls to the Web server. This request can degrade the loading process of the page. And then affect the speed.
(2). Framework issues. The use of frames in the Web page also reduces the loading process of the page, and similar to the image factor, loading an n-frame requires a request n times.
(3). Table problems, try to avoid using tables, especially to avoid using multiple tables, complex tables can affect the efficiency of HTML execution.
(4). Remove the extra tags, let's take a look at the following example:
(5). Reduce the annotation, which will reduce the size of the file. And then increase the loading speed.
(6). Avoid using long file names and use relative paths to access other files on the page as much as possible.
(7). Try to avoid using Java Applets in HTML pages. For example, if you want to use Java applets to handle animations, you might consider using a GIF file or flash instead, which will be much faster than the Java applets.
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.