From cb37b845e433facb1eab00341ce031bed5f04e97 Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Mon, 15 Oct 2012 12:50:07 -0700 Subject: [PATCH] CLJ-1087: Enhance performance of diff on maps with many common keys --- src/clj/clojure/data.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/clojure/data.clj b/src/clj/clojure/data.clj index 345b234..2d2d6e0 100644 --- a/src/clj/clojure/data.clj +++ b/src/clj/clojure/data.clj @@ -115,7 +115,7 @@ java.util.Map (diff-similar [a b] - (diff-associative a b (set/union (keys a) (keys b))))) + (diff-associative a b (into (set (keys a)) (keys b))))) (defn diff "Recursively compares a and b, returning a tuple of -- 1.7.10