You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation is unnecessarily slow, because of redundant clones performed by the Evaluator. The clones are necessary for some Fold, because it would otherwise invalidate the model, but for looking up if a variable has a constant value like ctVariableReference.getDeclaration().getInitExpression() instanceof CtLiteral<?> ctLiteral, we can be a lot more conservative with cloning or skip it all together.
The text was updated successfully, but these errors were encountered:
Description
The current implementation is unnecessarily slow, because of redundant clones performed by the
Evaluator
. The clones are necessary for someFold
, because it would otherwise invalidate the model, but for looking up if a variable has a constant value likectVariableReference.getDeclaration().getInitExpression() instanceof CtLiteral<?> ctLiteral
, we can be a lot more conservative with cloning or skip it all together.The text was updated successfully, but these errors were encountered: