[erlang-questions] fast JSON parser in C
Thu Jul 24 11:02:36 CEST 2008
You might want to go with the ei interface rather than the erl_interface
since it is not as clumsy to use. Further, you might want to have a look
at the ejabberd expat driver and just replace the expat stuff with your
json SAX events.
Chris Anderson wrote:
> On Wed, Jul 23, 2008 at 1:49 PM, Jonathan Gray <jlist@REDACTED> wrote:
>> However when I get a big chunk (around 80-120K) directly from Erlang as
>> binary (using term_to_binary in erlang), I'm unable to decode it using
>> erl_interface erl_decode, though it can be decoded fine from within Erlang.
> Good to know - CouchDB's Erlang -> JSON encoding is fast enough to not
> need help from C. I'm just working on making the JSON -> Erlang fast
> enough, so as long as I can get string buffers over to C in the first
> place, it sounds like you're not having a problem moving data from C
> back to Erlang.
> Time to buckle down and code!
More information about the erlang-questions