Please help with writing spec for async JSON APIs

Bruno Jouhier bjouhier at gmail.com
Mon Aug 3 19:30:44 UTC 2015


Reviver is a bit of a killer feature for async parsing because it imposes a
callback on every key. It makes it difficult to efficiently offload parsing
to a worker thread. Without it, feed entries could be parsed and
materialized safely (provided GC allows it) in a separate thread and then
emitted to the main JS thread.

In our "big JSON feeds" scenarios we never use revivers, and actually I'm
not sure we even use them on small JSON payloads.

Is this feature really necessary in an async/incremental API variant?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150803/6575750c/attachment.html>


More information about the es-discuss mailing list