Skip to content

Commit

Permalink
Use a *much* faster "satisfies?" alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Dec 3, 2012
1 parent 6f1854c commit 18a1b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cheshire/generate.clj
Expand Up @@ -82,7 +82,7 @@
(defn generate [^JsonGenerator jg obj ^String date-format ^Exception ex]
(cond
(nil? obj) (.writeNull ^JsonGenerator jg)
(:to-json (find-protocol-impl JSONable obj)) (#'to-json obj jg)
(get (:impls JSONable) (class obj)) (#'to-json obj jg)
(i? IPersistentCollection obj) (condp instance? obj
clojure.lang.IPersistentMap
(generate-map jg obj date-format ex)
Expand Down

0 comments on commit 18a1b4a

Please sign in to comment.