Script Performance


Each script is semi-compiled while it is being loaded and syntax-checked. In addition to reducing the memory consumed by the script, this process also enhances its runtime performance (by orders of magnitude in some cases). The performance boost is greatest when SetBatchLines is -1, meaning that the script is running at maximum speed.

In addition to SetBatchLines, the following commands may also affect performance depending on the nature of the script: SetKeyDelay, SetMouseDelay, SetWinDelay, SetControlDelay, and SetDefaultMouseSpeed.


Here are the technical details of the optimization process (semi-compiling):