No struct table comparisons#

No structure or table comparisons

Description#

Structures and/or tables should not be compared directly with each other.

Rationale#

This advisory rule helps improve the runtime performance of a model by identifying direct comparisons between structures and/or tables. These comparison operations go value-by-value and may be costly in terms of compute time.

The intent is to turn this rule on when optimizing for runtime performance in the late stages of model design.

Verification#

The rule registers to expression calls and raises a violation when a comparison operator [1] is used between two structures and/or tables [2].

Resolution#

Modify the offending comparison.

Customization#

N/A.