Home


1.4.6 Path length


Overview

Path length refers to the number of steps that an action takes. To reduce path length to speed up a Web site or application...

  1. Speed up steps
  2. Reduce the number of steps an activity takes

For example, you can move static statements out of a loop to reduce number of statement executions by using optimization...


Consolidate Web site pages

If a site has a "greeting" page, followed by a "logon" page, then a transaction page, you could consolidate the first two pages into a greeting/logon page. The consolidated pages can then transition to the transaction page. Having fewer pages equates to less work for the servers and faster transition to the transaction page.


Refactor

Another technique involves reducing the application activity path length. For example, if a particular operation contains...

  1. Obtain connection
  2. Store user information
  3. Obtain connection
  4. Store sale

You could refactor this into:

  1. Obtain connection
  2. Store user information and sale

+

Search Tips   |   Advanced Search