themill / wiz

Environment management framework
GNU Lesser General Public License v3.0
45 stars 4 forks source link

group variants more efficiently #52

Closed buddly27 closed 3 years ago

buddly27 commented 4 years ago

When working with a high number of variants, it would help speeding up the resolution if we added a step to combine equivalent ones. Let's consider the following example:

Combination order will depends on position of the nodes in the graph, but in the worst case scenario, this order would be a complete waste of time:

Instead, it would be great to have some logic to smartly combine [def1[V2], def2[V2]] and [def1[V1], def2[V1]] as they both share the same requirements