MultisetSubstitutionSystem will automatically figure out the number of inputs in some classes of rules and adjust "MinEventInputs" and "MaxEventInputs" accordingly.
This was one of the bottlenecks in MultisetSubstitutionSystem performance.
Comments
It cannot recognize all cases (in particular there is a condition in which Length is used). However, it does go inside conditions in simple cases, so something like {a_, b_} /; a < b is recognized.
This will be disabled in the new WL versions in case new pattern symbols appear.
@taliesinb, can you think of a better way to do this?
Changes
MultisetSubstitutionSystem
will automatically figure out the number of inputs in some classes of rules and adjust"MinEventInputs"
and"MaxEventInputs"
accordingly.MultisetSubstitutionSystem
performance.Comments
Length
is used). However, it does go inside conditions in simple cases, so something like{a_, b_} /; a < b
is recognized.Examples
"MaxEventInputs"
spec:This change is