13.1. Tips for Application Design

Here are some tips for good application design:

  • Design the best possible algorithm first. Spending time up front to tune the algorithm so that it performs well often has the most impact on application performance. It is also more difficult to go back to analyze and tune the algorithm after it is written.

  • Choose an IPC mechanism based on performance rather than ease of coding. This subject will be discussed more fully in the section on choosing IPC mechanisms.

  • When large amounts of data must be shared among parts of the application, one should carefully evaluate relative performance differences among the following:

    - Using kernel threads

    - Employing user-space threads

    - Using child processes

    - Creating independent processes ...

Get HP-UX 11i Tuning and Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.