1. A method for optimizing a pattern generation program used in a signal generator comprising a generator for generating a signal pattern based on a pattern generation program, a memory for storing the signal pattern, and an output for outputting, on a predetermined cycle, the signal pattern stored by the memory, wherein said optimizing method comprises: evaluating, for each command of the pattern generation program, whether it is necessary to develop the command in question of the program; and developing the command.