use closure to simplify calculation of isBuildable:
since the closure will stay the same among all business paths, transform for path in previous_path_list: for movement in path.getRelatedMovementValueList(): into: closure = current_path.getBusinessPathClosure() for movement in closure: This means that number of simulation tree walks is reduced by a factor of len(previous_path_list) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36585 20353a03-c40f-0410-a6d1-a30d3c3de9de
Showing
Please register or sign in to comment