• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Principles and Patterns > Patterns of Performance Improvement

Patterns of Performance Improvement

Performance improvements can be grouped into patterns of the way things tend to work rather than concrete advice. The following sections discuss some patterns that unify performance improvement techniques.

Amortization

Performance improvements often involve amortizing overhead among many transactions for an economy of scale:

  • HTTP 1.1 allows a single TCP connection to be reused for multiple file downloads. This feature is known as persistent connections. The overhead of setting up and tearing down a TCP connection is spread among several files rather than reincurred for each file.

  • Java .jar files work in a similar way, grouping Java .class files together into a package that can be downloaded in one TCP connection rather than setting up a separate TCP connection for each class. The downside here is that .jar files may include classes you never use.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint