User guide
48
Paths Versus Rules
CEL has a number of optimizations for dealing with explicit lists of paths. This means using paths are the best way of
working in many cases, and matching against paths is generally very efficient as long as the list of paths isn't too
long.
As a general rule it's more efficient to use explicit lists of paths than active rules for up to around
100 paths. If you have explicit lists with many thousands of paths you can run into efficiency issues where it may be
very worthwhile using rules with wild-cards instead.
'Select and Collect' operations are always more efficient with an explicit path list.
Use Differences Between CEL Statements Cautiously
Taking the difference between two CEL statements can be expensive. In particular if two CEL statements are made
up of paths when you take the difference it's no longer treated as a simple path list so won't use the special
optimizations for pure path lists.
Single nodes with complex difference based CEL statements can often be more efficiently replaced by a number of
nodes with simpler CEL statements.
7 SCENE ATTRIBUTES AND HIERARCHY | GUIDELINES FOR USING CEL