Skip to content

Commit 1332457

Browse files
committed
try perf optimization
1 parent a806b5c commit 1332457

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Lean/Meta/ExprDefEq.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ private def isDefEqApp (t s : Expr) : MetaM Bool := do
21592159
return true
21602160
else
21612161
isDefEqOnFailure t s
2162-
else if (← checkpointDefEq (Meta.isExprDefEqAux tFn s.getAppFn <&&> isDefEqArgs tFn t.getAppArgs s.getAppArgs)) then
2162+
else if t.getAppArgs.size == s.getAppArgs.size && (← checkpointDefEq (Meta.isExprDefEqAux tFn s.getAppFn <&&> isDefEqArgs tFn t.getAppArgs s.getAppArgs)) then
21632163
return true
21642164
else
21652165
isDefEqOnFailure t s

0 commit comments

Comments
 (0)