### Optimize Your Application

Because the size of your application affects both the load time and the run-time characteristics, it is best to do size tuning before performance tuning. Changes you should already have considered include:

- choosing efficient algorithms with small memory footprints
- avoiding duplicate copies of data

If you have not already checked your program for these types of improvements, it is best to do so before trying any of the techniques below. These are guidelines only. Remember that the results of optimization depend to a great extent on the code being optimized.

Standard Considerations

- Summary of Options to Enable Optimization
- Linker Options That Can Improve Performance

Fine-Tuning Your Source Code

- Choose the Most Appropriate Libraries
- Improve Memory Management
- Improve Allocation of Storage in OS/2 and Windows
- Optimize String Manipulation
- Find Faster I/O Techniques
- Reduce Function-Call Overhead
- Coding Techniques That Can Improve Performance

Overview of Optimization

Debug Optimized Code

Summary of Compiler Options
Summary of Linker Options
Index of #Pragmas