Environment
Business Service Level Management 4.x
Business Experience Manager 4.x
Business Experience Manager 4.x
Situation
You want to understand what the purpose of the @opt flag.
Resolution
The @opt is a Formula script compiler optimization flag. You must set it as the first line in the script, the format follows.
//@opt <optimization level, -1 or 1-9>
By default, the flag is set to, -1, which means no optimization, levels 1-9 are increasing degrees of optimization.
In practice, you'll only need the level 9 value and only when the script is showing performance issues.
One caveat, optimization the scripts causes line numbers to not correlate with the error messages. It is best to get the script working first with defaults values, then turn on optimization.
//@opt <optimization level, -1 or 1-9>
By default, the flag is set to, -1, which means no optimization, levels 1-9 are increasing degrees of optimization.
In practice, you'll only need the level 9 value and only when the script is showing performance issues.
One caveat, optimization the scripts causes line numbers to not correlate with the error messages. It is best to get the script working first with defaults values, then turn on optimization.