/// Decides whether the change in the dataflow configuration is 'significant'
///
/// # Comments
///
/// * Operators in `before` and `after` are expected to be in the same order
Decides whether the change in the dataflow configuration is 'significant'
Decides whether the change in the dataflow configuration is ' significant '
fn consider_change(before: &Vec<(OperatorId,OperatorInstances)>, after: &Vec<(OperatorId,OperatorInstances)>) -> bool
{
    assert_eq!(before.len(),after.len());
    for i in 0..before.len()
    {
        let i_before = before[i].1;
        let i_after = after[i].1;
        if (i_before < i_after) || (i_before-1 > i_after) { return true; }
    }
    return false;
}
fn consider_change ( before : & Vec < ( OperatorId , OperatorInstances ) > , after : & Vec < ( OperatorId , OperatorInstances ) > ) -> bool { assert_eq ! ( before len ( ) after len ( ) ) ; for i in 0 .. before . len ( ) { let i_before = before [ i ] . 1 ; let i_after = after [ i ] . 1 ; if ( i_before < i_after ) || ( i_before - 1 > i_after ) { return true ; } } return false ; }
Decides whether the change in the dataflow configuration is 'significant'
Decides whether the change in the dataflow configuration is ' significant '
before
&Vec<(OperatorId,OperatorInstances)>
after
&Vec<(OperatorId,OperatorInstances)>
comments
Operators in `before` and `after` are expected to be in the same order
Operators in ` before ` and ` after ` are expected to be in the same order