Hi Stefan,
> Could you point to concrete
> examples, bug reports, and things like that?
There are several discussions in reddit/github related to lsp-mode being slow
due to json parsing and the usual answer is that things are going to be better
after switching to native json parsing available in Emacs 27 and the following
believe that this is not going to happen to have the following points in mind:
1. You could have multiple running LSP servers and each of them could post big(1m+)
updates at any time.
2. A similar problem exists for Debug Adapter Protocol client dap-mode
sessions as you want and each of them could send an update at any time too.
My point is that Emacs should be able to process a lot of json requests/responses
and still being responsive and if this requires parsing some text format
messages(e. g. Json/XML/emacs built-in) on UI thread this is not going to
happen.
> It shouldn't be too hard to use a separate (OS-level) Emacs *process*
> if you want to do the parsing without blocking the normal UI thread.
> But it comes with other performance tradeoffs.
Please correct me if I am wrong but I believe that I will still have to parse
the input on UI thread but from a different format(e. g. using built-in
print1/read) which in the end will have the same result.
Thanks,
Ivan