Reactor: enable to reuse RuleIndex from token in non-incremental mode.
This commit is contained in:
parent
89843bfac4
commit
4e89325d47
|
|
@ -49,7 +49,10 @@ internal class EvaluationSessionImpl private constructor (
|
|||
val invalidFeedbackKeys: Set<Any>
|
||||
|
||||
if (!incrementality.ability().allowed() || token == null) {
|
||||
val ruleIndex = RuleIndex(program.rulesLists())
|
||||
val ruleIndex = token
|
||||
?.let { (it as SessionTokenImpl).ruleIndex }
|
||||
?.also { it.updateIndex(program.rulesLists(), rulesDiff.removed) }
|
||||
?: RuleIndex(program.rulesLists())
|
||||
val logicalState = LogicalState()
|
||||
|
||||
val processing = ConstraintsProcessing(
|
||||
|
|
|
|||
Loading…
Reference in New Issue