[clojure-contrib commit] r946 - pprint: Changing one '=' into an 'identical?' gave us another ~30% speedup.

0 views
Skip to first unread message

codesite...@google.com

unread,
Jun 16, 2009, 3:31:20 AM6/16/09
to clojure...@googlegroups.com
Author: tomfaulhaber
Date: Tue Jun 16 00:14:36 2009
New Revision: 946

Modified:
trunk/src/clojure/contrib/pprint/PrettyWriter.clj

Log:
pprint: Changing one '=' into an 'identical?' gave us another ~30% speedup.

Modified: trunk/src/clojure/contrib/pprint/PrettyWriter.clj
==============================================================================
--- trunk/src/clojure/contrib/pprint/PrettyWriter.clj (original)
+++ trunk/src/clojure/contrib/pprint/PrettyWriter.clj Tue Jun 16 00:14:36
2009
@@ -68,7 +68,7 @@
(loop [child (:parent child)]
(cond
(nil? child) false
- (= parent child) true
+ (identical? parent child) true
:else (recur (:parent child)))))

(defstruct #^{:private true} section :parent)

Reply all
Reply to author
Forward
0 new messages