feat: calculate tuple distribution in a separate function
Previously distribution was calculated in the node constructor. It is a wrong design as the tree would be transformed multiple times and there is no reason to recalculate distribution on each step. We need distribution only on the last transformation when we insert Motion nodes. So, this refactoring makes tuple distribution optional and moves distribution logic to a separate function 'set_distribution()'.
Showing
- src/errors.rs 18 additions, 6 deletionssrc/errors.rs
- src/ir.rs 151 additions, 1 deletionsrc/ir.rs
- src/ir/expression.rs 67 additions, 13 deletionssrc/ir/expression.rs
- src/ir/expression/tests.rs 8 additions, 8 deletionssrc/ir/expression/tests.rs
- src/ir/operator.rs 41 additions, 87 deletionssrc/ir/operator.rs
- src/ir/operator/tests.rs 38 additions, 13 deletionssrc/ir/operator/tests.rs
- tests/artifactory/ir/expression/suggest_distribution.yaml 0 additions, 0 deletionstests/artifactory/ir/expression/suggest_distribution.yaml
Please register or sign in to comment