BAL building blocks

The in and from building blocks help you optimize performance.

Rules can also be internally rewritten by the engine to enable automatic optimization of the rules. By using the from and in building blocks, you reduce the number of objects on which pattern matching is applied, and hence the number of evaluations carried out. The rule engine automatically rewrites rules to use these building blocks whenever possible. For details see Using objects that are not in memory in a condition.