yobx.xbuilder.order_optim#
- class yobx.xbuilder.order_optim.OrderOptimization(builder: GraphBuilder, algorithm: OrderAlgorithm = OrderAlgorithm.NONE, verbose: int = 0)[source]#
Optimizes the order of computation. It tries to minimize the distance between a producer and the consumer or a result. The idea is to reduce the memory usage.
- Parameters:
builder – GraphBuilder holding the model
algorithm – to apply
verbose – verbosity