First time here?
Back again?


 
 

How can I make my post work faster?

CATEGORY: PROGRAMMING
TYPE: MACRO
IMS VERSION: ALL
PLATFORM: ALL

The majority of the time spent postprocessing a file is consumed processing GOTO statements.
In many cases, very large files (20, 30, 50MB files) consist almost entirely of GOTO commands.
For this reason, you should keep the GOTO macro as simple as possible.
If additional functionality is required, using the hooking function, if possible, is strongly suggested.
If the standard GOTO macro is used in your project, a very good alternative is to use the IMSpost SYSTEM.SURFACE flag.
When this flag is set, the GOTO macro is not used; but instead, an internal version of the GOTO macro, which is implemented in the IMSpost program engine, is activated. All formatting is maintained, hooking functions are acted on, and so forth, so this is usually very useful. This will cause the postprocessor to execute substantially faster.
Note that you can set this variable, SYSTEM.SURFACE, on and off at different times during postprocessor execution.
For example, if you want rapid moves to go through the standard GOTO macro, and contouring moves to use the internal implementation, set the variable SYSTEM.SURFACE = 0, in the RAPID/* macro; then at the end of the GOTO/* macro, set SYSTEM.SURFACE = 1.

Back to Frequently Asked Questions