perf: `expr_eq_fn` (#4934)

This PR contains a collection of small optimizations that improve the
equality test for `Expr`.
1 file changed