Skip to content
Snippets Groups Projects
  • Denis Smirnov's avatar
    9c3fe605
    feat: calculate tuple distribution in a separate function · 9c3fe605
    Denis Smirnov authored
    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()'.
    9c3fe605
    History
    feat: calculate tuple distribution in a separate function
    Denis Smirnov authored
    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()'.