From eca9b63d688c87e62a58bfdba9a683c91061ce29 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 14 Apr 2026 20:13:20 +0000 Subject: [PATCH] :zap: Remove redundant map lookups in map-diff The :else branch of diff-attr was calling (get m1 key) and (get m2 key) again, but v1 and v2 were already bound to those exact values. Reuse the existing bindings to avoid the extra lookups. --- common/src/app/common/data.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/data.cljc b/common/src/app/common/data.cljc index 19d4828d13..1494132f1d 100644 --- a/common/src/app/common/data.cljc +++ b/common/src/app/common/data.cljc @@ -952,7 +952,7 @@ (assoc diff key (map-diff v1 v2)) :else - (assoc diff key [(get m1 key) (get m2 key)]))))] + (assoc diff key [v1 v2]))))] (->> keys (reduce diff-attr {}))))