Optimize ASP Program performance (RPM)

Source: Internet
Author: User
Active Server pages enables dynamic pages to be executed quickly, but by adding skills to the connection to the database in your code, you can make the program execute faster. This is an article on how to refine the script and ASP features to achieve maximum speed. Any delay between the user clicking the button and the result on the screen will leave the user at a loss, and for a commercial site, this means potential user losses.
Dimensions of ASP scripts
We may not be able to control the bandwidth of the user, but by optimizing the ASP site, we can actually achieve the best performance for the application. Many potential performance gains can be adjusted through the system rather than changing the code.
Factors
First, what factors may affect the performance of an ASP program? Unfortunately, is there a lot of it? Here are just a few:
Limited bandwidth
Speed of server-side processors and other hardware
Other processes running on the server (for example, one of those OpenGL screen saver programs)
Database connection mode, connection pooling, or a separate database (such as Oracle, SQL Server, Access)
Language of Use
Stored Procedures and SQL
Using an precompiled component, not VB or Javsscript ASP
Good programming habits, such as dealing with errors
Some of these features are common to an experienced developer with good knowledge of IIS, but others can be very complex. In this article, let's look at how we can save milliseconds of time rather than trying to be exhaustive.
Does your ASP script look too long for the functionality you implement? This will affect the performance of the program from the beginning. ASP scripts are useful for gathering information and formatting output, but scripts are interpreted as rows, so the longer the code, the longer the execution time.
If you have a very long ASP script, how can you reduce the length? Here are some suggestions.
You can convert them to server-side components, in other words, create a visual Basic DLL file, or use any modern Windows programming language and COM-compliant language to establish an precompiled component and register on the server. For a tutorial on this feature, see http://www.webdevelopersjournal.com/articles/activex_for_asp.html. A well-written ActiveX component can not only greatly increase the speed, but also greatly improve the protection of your software, especially when you are developing an ASP program for a 3rd party.
Because the script is executed on a line of lines, eliminating redundant scripts or creating efficient scripts can improve program performance. If you have hundreds of ASP scripts on a single page, you might be able to split the program into user, business, and Data Services sections. In fact, if you do, you'll find some extra code. For example, if you need to display a few tables, you can write a generic table display function so that you can call it where you need it.

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.