I understand the desire to keep the parser clean, but at the same time
the ability to register custom data deserializers would be very
convenient. Would something like the following help with the
performance issue, since if no deserializers were registered there
would only be a one time penalty for selecting the object reader?

(defn- read-json-reader
  ([#^PushbackReader stream keywordize? eof-error? eof-value]
     (loop [i (.read stream)
            object-reader (if (empty? @*deserializers*)  read-json-
object read-json-object-and-deserialize)]




On Aug 24, 6:51 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote:
> On Aug 23, 9:03 pm, Dmitri <dmitri.sotni...@gmail.com> wrote:
>
> > Would there be an issue with adding something like that to the
> > contrib?
>
> I don't want to add anything that impacts performance in the plain
> parsing case.
>
> -S

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to