emacs-devel
[Top][All Lists]
Advanced

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

Re: Speeding up Flymake in emacs-lisp-mode


From: João Távora
Subject: Re: Speeding up Flymake in emacs-lisp-mode
Date: Fri, 02 Nov 2018 14:06:18 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt)

Stefan Monnier <address@hidden> writes:

>> First, I was under the impression that stdin/stdout for emacs was
>> not easy.
>
> Usually it's not, but when running in batch mode it's not so bad.
>
>> Glad to hear it isn't, but how do I read from stdin?
>
> async.el does it with (read t), IIRC.
>
>> Are you suggesting I keep a pool of ready to invoke emacsen
>> and discard them once they become "dirty"?
>
> I think so, yes.  I'd limit the pool to a single process.

Actually, now I think Noam was suggesting something else, which is
insulating slow process creation from the "main" emacs.  And that indeed
requires just a single extra process.

> It should be easy to do directly within async.el.
> Basically, change async-start so that instead of
>
>     (let ((proc (async-start-process ...)))
>       (async--transmit-sexp proc ...))
>
> it does
>
>     (let ((proc async--eager-process))
>       (async--transmit-sexp proc ...)
>       (setq async--eager-process (async-start-process ...)))

Yeah, but I don't see why I need to restart async--eager-process
(assuming that's what async-start-process does).

Is async.el in ELPA?

João



reply via email to

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