System performance optimization summary of the presentation layer (1)

2010-12-03  来源:本站原创  分类:Internet  人气:73 

Consideration of system performance is a key difference between novice and veteran, one of the interview, ask some performance optimization problem, it is easy to judge a candidate's work experience. Here is my performance optimization considerations, from the presentation layer, business layer, the three major aspects of the technical level to elaborate. This presentation will introduce elements of performance optimization.
Layer optimization of the performance of an important principle is to reduce the number of requests to the server and reduce the amount of data transfer per request, around this point will think there are many optimization methods.

  • ajax: we all know, ajax partial updating can be achieved, apparently to reduce the data traffic and the number of requests (full page refresh, the page should be carried out on a lot of resources requested Oh), and ajax can enhance the customer experience;
  • Reduce image file size, this is a way to reduce the amount of data communication can be used like a smaller png file archiving format;
  • Use css for image segmentation, the number of places a small icon into a picture up. For example:. Zhu {background: url ("../ img / shenxiao / sx.png ") no-repeat scroll 0-528px transparent;}, note that one of the 0-528, was the key;
  • Css and js files to reduce the data, it is best not in accordance with the page logic into multiple files to reduce the number of requests; in the same file, also thought to reduce the file size, extra spaces, carriage returns, the project line before going to get rid of, I have seen some sites to a css file, open, only the line, this line is very long and visible, while carriage return line has been deleted, hehe. Again, js files before you find a tool on the line compress the file size usually less than half;
  • From the procedure, treatment of the static pages (static pages I will deal with the details described in a later blog.)
  • The page cache, squid majority of open source products, oscache is also possible.
  • If the jsp, you can consider replacing the template into other frameworks, such as: velocity, freemarker etc., one can increase page response to the speed, you can force the programmer to write the page by model2 interaction.
  • According to the actual data to choose the appropriate means of communication, json, xml, or a server page and then sent to fight a good client.
  • Rational use of browser cache. But sometimes, is prohibited cache oh, such as some ajax operations.
  • Gzip compression enabled server.

Of course, the many roads to Rome, to "reduce the number of requests to the server and reduce the amount of data transfer per request" as the optimization of the core, still a lot of ways.

相关文章
  • System performance optimization summary of the presentation layer (1) 2010-12-03

    Consideration of system performance is a key difference between novice and veteran, one of the interview, ask some performance optimization problem, it is easy to judge a candidate's work experience. Here is my performance optimization considerations

  • System Performance Optimization chapter summary of the persistence layer (3) 2010-12-03

    Last post is about the persistence of performance optimization, and dba's close relationship, I think the main principles of the persistence layer optimization is: to reduce the table associated with inquiries. Even if the query must be related, but

  • System performance optimization - project summary record 2011-09-06

    Projects in the past are more than three months, and did a summary of the system, to sum up today System background: 1. Access to large: day, under 2 billion + service call 2 massive data: core data sheet is 500 million, but also to hundreds of thous

  • Transferred from site performance optimization summary 2010-06-04

    Summary transferred from site performance optimization. 1. To use stored procedures (if stored in a program with the exec process parameters, such implementation does not seem much faster) is pre-compiled in the database, nor need to spend a lot of t

  • Database Performance Optimization Summary 2010-12-09

    For web application development, the majority of performance bottlenecks are in the database, in addition to the distributed architecture, or cloud processing (basically large companies), more importantly, the design must follow the normal procedures

  • Technical summary of the presentation layer interface development 2010-03-12

    Layers available in the market that some interface development techniques as following: Horizontal axis preference for server-side technology. Read from left to right order: 1) CGI is used in the early Common Gateway Interface, has long been abandone

  • sql performance optimization summary 2011-09-20

    Recently to help a student to do database optimization, looked at the statistics, I feel very good. One. Purpose Database parameters to optimize the performance improvement gained only a database application system all add up to about 40% performance

  • Web page performance optimization Summary 2010-03-20

    Web page performance optimization First, add Expire / Cache-Control header: Add an Expires Header Now, more and more pictures, scripts, css, flash is embedded to the page, when we visit when they do many times is bound to http requests. In fact, we c

  • C # performance optimization summary 2010-04-08

    A garbage collection Garbage collection object the liberation of the manual management work to improve the robustness of the program, but possible side effect is that the code created for the object to become free. 1.1 As the high cost of garbage col

  • Summary of system performance to optimize the performance of layer (1) 2010-12-03

    Consideration of system performance, is a novice and veteran is one important difference, the interview, ask some of the performance optimization problem, it is easy to determine the candidate's work experience. Here is my performance optimization co

  • Summarizes the performance of the system level performance optimization (1) 2010-12-03

    Consideration of system performance is a key difference between novice and veteran, one of the interview, ask some performance optimization problem, it is easy to judge a candidate's work experience. Here is my performance optimization considerations

  • To improve system performance by ulimit 2010-05-22

    http://www.ibm.com/developerworks/cn/linux/l-cn-ulimit/ To improve system performance by ulimit Document options <script type="text/javascript"> </ script> <noscript> </ noscript> <noscript> </ noscript> Print

  • [Performance optimization] linu adjustable performance parameters introduced at all levels 2010-09-03

    Under the last brief introduction, linux the cpu, memory, disk i / o; net i / o performance monitoring tools; this section of the introduction, these levels when the bottlenecks and how to adjust the kernel, there are those kernel parameters can be a

  • Linux system performance analysis tool 2011-05-24

    http://v.youku.com/v_show/id_XMjY3Njg4MjAw.html As a linux system administrator, the most important job is to optimize the system configuration, the application of the best in the state of the system to run, but due to hardware problems, software pro

  • Linux system performance analysis tools 2011-05-24

    http://v.youku.com/v_show/id_XMjY3Njg4MjAw.html As a linux system administrator's main job is to optimize the system configuration, the application on the system to the optimal state of operation, but due to hardware problems, software problems, netw

  • On the sql performance optimization 2011-08-04

    sql performance optimization summary: With more recent data, database performance problems exposed more and more serious. Millions, tens of millions, even billions of dollars of data processing speed is very slow. The following problems encountered i

  • Summary of business performance optimization system layer (2) 2010-12-03

    Optimize the performance of the business layer, may be more concerned about some ordinary programmers, I summarized the following points, only when the initiate it. Code level: the scope of variable declarations, for loop or while, + +, and shift ope

  • [Change] Flex performance optimization techniques commonly used summary 2010-04-28

    As more and more Flex is well known, more and more Internet applications have begun RIA. As we all know, the current domestic broadband applications is not as well developed in many developed countries, individual applications are basically 2M below

  • Flex performance optimization techniques commonly used summary 2010-07-30

    As more and more Flex is well known, more and more Internet applications have begun RIA. As we all know, the current domestic broadband applications is not as well developed in many developed countries, individual applications are basically 2M below

  • Oracle SQL Performance Optimization Tips Great summary 2010-08-03

    Oracle SQL Performance Optimization Tips Great summary (1) Select the most efficient sequence table name (only the effective rule-based optimizer): ORACLE parser in accordance with the order processing from right to left in the FROM clause of the tab