Script Performance

To maximize performance, avoid using SetFormat (except the fast mode) and include the following lines near the top of each script:

SetBatchLines -1
ListLines Off

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

Built-in Performance Features

Each script is semi-compiled while it is being loaded and syntax-checked. In addition to reducing the memory consumed by the script, this also greatly improves runtime performance.

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

In addition, during script execution, binary numbers are cached in variables to avoid conversions to/from strings. See SetFormat for details.