I wanted to find out if anyone out there is actually using Jawn's AST,
and if so, for what? Simple Object -> AST -> String rendering? Data
encapsulation and storage in memory? Something else?
I'm trying to get a sense of whether it is worth it for me to try to
make the AST nicer to work with, and also the degree to which a new
version must preserve compatibility.
Thanks for your feedback. I was planning on removing the Spire
dependency, or moving it out to a separate module if anyone uses it
(which I don't expect).
Right now, I'm planning to change the AST a bit. I want to keep it
simple but also support fast/lazy parsing.
One quick question for you:
Right now Jawn's AST assumes you will want fast lookup/updating for
JSON objects, so JObject wraps a mutable.Map built during parsing.
Sometimes this feature isn't needed. In those case, deferring the map
creation (and saving something more like Array[(String, JValue)]
instead) is more efficient -- you can create a map later if you end up
needing it.
Jawn's AST construction is already quite fast, but in cases where you
don't need the map it could be even faster. I'm just curious whether
your usage in Kafka would benefit from this kind of optimization.
--
You received this message because you are subscribed to the Google Groups "Typelevel Users & Development List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to typelevel+...@googlegroups.com.
To post to this group, send email to type...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/typelevel/686b0926-d4df-4839-ac4c-7443b98cf008%40googlegroups.com.