Suppose a module thread will be able to parse JSON: what would the
main (a.k.a. "Lisp") thread of Emacs do while the module thread is
working? Doesn’t it need to wait for the parsed data anyhow?
If json messages are parsed in module thread and saved as c struct data(not lisp data), they have to be
translated to lisp data before emacs use. The translation which should be done in emacs thread cost too
much cpu, which make the parallel parsing of json messages not very useful.
You are saying that the translation is costly, but did someone
actually measure that and verify that it's indeed costly? And if
someone did, where can I see the results in sufficient level of detail
to understand what part(s) of parsing JSON are the bottleneck?
@yyoncho Can you join the discussion?
Is it possible to parse json messages and prepare data struct for pdumper, and translate the data to lisp
using pdumper? What about the performanse comparing with the above?
I don't think I understand what does pdumper have to do with this
issue.