Tips on executing IIS and designing an ASP program

Source: Internet
Author: User
iis| Program | skill | design | Execution 1. Average before and after-end program execution load
The purpose of ASP is not to replace the script on the front page, instead, the front and back end should coordinate with each other: the work that can be performed by the front end does not increase the burden on the back end. Don't forget, a Web server may have to respond to dozens of-bit, with hundreds of-bit or even thousands of-bit users browsing, if the logical processing work is distributed evenly across the front and back ends, the backend Web server will be able to respond to front-end requirements more quickly, or to serve more consumers.
For example, the work of checking the correctness or completeness of a form's data should be done in front of the script, as it would reduce the bandwidth used by the data and reduce the burden on the Web server. Again, such as the clock on the Web page, just record the user browsing time, or due to time, seasonal changes in the Web page special effects or display greetings, should also let the script to complete the front.

2. Selected variable type
Unless really necessary, minimize the chance that global variables appear in ASP files. Because IIS stores the relevant data for a local variable in a specific table in the system at the parsing stage of an ASP program, it is then available for the ASP program friend to refer to. However, global variables must wait for the execution phase of an ASP program to perform such processing, so the efficiency of using global variables is lower than that of local variables.
Because of the nature, the local variable efficiency of almost any program language is higher than the global. Of course, if it is really necessary, even if the efficiency is worse to use; just want to remind you, before using, carefully weigh the status of variables, and then give the most appropriate range of activities.



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.