[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Speeding up Flymake in emacs-lisp-mode
From: |
Stefan Monnier |
Subject: |
Re: Speeding up Flymake in emacs-lisp-mode |
Date: |
Fri, 02 Nov 2018 09:05:06 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> 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.
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 ...)))
-- Stefan