all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* limitation in how emacs processes subprocess output, maybe belongs to mainstream
@ 2022-05-25 12:10 Jean Louis
  2022-05-25 16:23 ` Robert Pluim
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Louis @ 2022-05-25 12:10 UTC (permalink / raw)
  To: Emacs Developers; +Cc: Tyler  Dodge

I have read in Emacs News by Sacha Chua, about this Eshell speed up:

From 70 Seconds To 3 Seconds
https://tdodge.consulting/blog/eshell/background-output-thread

and the fork of Emacs is here:

GitHub - tyler-dodge/emacs: Fork of emacs mirror Emacs. Has a background thread optimization for getting past the 1024 byte bottleneck on MacOS
https://github.com/tyler-dodge/emacs

Where author writes:

> In a change that I made to my fork of emacs, I added a background
> thread that continuously handles buffering subprocess output. This
> has the benefit of ensuring that the subprocess output is consumed
> as soon as it is available in STDOUT, which minimizes the amount of
> time that the subprocess blocks waiting for emacs to consume its
> output. This also makes it so that the strings passed to the
> subprocess filter can be larger than 1024 bytes because multiple
> reads can happen in the time between event loop evaluations.

Maybe developers and author may find it useful to implement author's
feature in the main stream Emacs?



Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-03  9:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-25 12:10 limitation in how emacs processes subprocess output, maybe belongs to mainstream Jean Louis
2022-05-25 16:23 ` Robert Pluim
2022-05-25 20:18   ` Tyler Dodge
2022-05-26  5:36     ` Eli Zaretskii
2022-06-03  9:44     ` Robert Pluim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.