在 2020年3月21日 +0800 PM4:16,Eli Zaretskii <eliz@gnu.org>,写道:

Yes, but so what? You can still do work in the module threads, then
send the accumulated results to emacs from the main thread.


Many users complain the lag of lsp-mode(lsp client for emacs). I’m also suffering from it, while the lsp works much better in vim and VSCode.
There are too many json messages in communication between emacs(lsp client) and lsp server. 

In that discussion,  some people want to parse the json messages in a module thread and prepare lisp data for emacs to use. But it is not possible because of the limit.

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.

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?