emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs design and architecture. How about copy-on-write?


From: Dmitry Gutov
Subject: Re: Emacs design and architecture. How about copy-on-write?
Date: Fri, 22 Sep 2023 02:01:03 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 22/09/2023 01:21, Stefan Kangas wrote:
Dmitry Gutov<dmitry@gutov.dev>  writes:

- People using LSP likely see better performance because of VC Code
being able to parse the server's output in a different thread (or web
worker? I haven't seen the exact design). LSP-Mode folks wrote a POC
branch of Emacs which parallelizes the JSON parsing as well:
https://www.reddit.com/r/emacs/comments/ymrkyn/async_nonblocking_jsonrpc_or_lsp_performance/
Some work toward mainlining this feature (perhaps after generalizing)
could help. Or maybe the "multiple concurrent interpreters" approach
could yield similar gains.
Could someone please contact them and ask if they plan to upstream it?
I think they're too busy and not motivated enough at the moment: 
https://github.com/emacs-lsp/emacs/issues/7
Further, it seems that at least for some users the current solution is 
not working very well: https://github.com/emacs-lsp/emacs/issues/9, but 
that seems macOS specific.
Anyway, I think it might need more work to get into upstreamable shape, 
but it's up for discussion how much it's going to be. Overall, the diff 
is not huge, and the first question would be is how generic we'd want 
this feature to be, or whether a separate JSON-parsing thread is 
more-or-less fine.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]