flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dawidwys <...@git.apache.org>
Subject [GitHub] flink pull request #6168: [FLINK-9588][CEP]Reused context with same computat...
Date Fri, 15 Jun 2018 12:47:00 GMT
Github user dawidwys commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6168#discussion_r195719361
  
    --- Diff: flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java ---
    @@ -662,13 +662,13 @@ private void addComputationState(
     			ComputationState computationState) {
     		final Stack<State<T>> statesToCheck = new Stack<>();
     		statesToCheck.push(state);
    -
    +		ConditionContext<T> context = new ConditionContext<T>(this, sharedBuffer,
computationState);
    --- End diff --
    
    How about creating the context only once at the very beginning of computeNextStates?


---

Mime
View raw message