You can use the VisualAge C++ configuration optimizer to analyze your configuration and modify it so that build performance is improved.
When VisualAge C++ optimizes your configuration, it scans the entire configuration and the codestore database, so that it can add included files directly into your configuration, when this action would not modify the meaning of your program. It can also change or add options for particular files. Although it may make your configuration file seem larger and more complex, optimization should speed later rebuilds by better managing dependencies between files.
This section should take you approximately 10 minutes to complete. In it, you will learn to use the Configuration Optimizer
You should have the following source files in a directory on your system. Click on the link to see the file's contents. Any changes you may need to make for your environment are indicated in the files.
Optimize Your Configuration
To optimize, select Optimize Configuration from the Tools menu.
The IDE inserts the statement tool"config_opt" in your .icc file, then rebuilds your project (because the configuration has changed). This statement causes the configuration optimizer extensions to be loaded and added to the work queue for the rebuild operation. The configuration optimizer gets control only if the build completes successfully. After the project has rebuilt, the configuration optimizer analyzes the codestore for the following information:
The configuration optimizer adds the required files to your configuration, removes files that are not needed, and changes the scope of certain options. If the optimization results in changes to the configuration, the optimizer initiates a second rebuild operation. Once optimization is done, the tool "config_opt" statement is removed.
For a small project such as this tutorial, optimizing your configuration may not have a noticeable impact on build performance. However, for a production application, particularly one using IBM Open Class Library classes extensively, build times may be reduced if you optimize your configuration periodically.
The configuration file shown in the Prerequisites sections of the following parts has not been optimized, for simplicity. You can, however, optimize your configuration at any time later in this tutorial.
You can proceed to the following sections:
