unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Chris Hanson <cph@chris-hanson.org>
To: help-gnu-emacs@gnu.org
Subject: Emacs 29 slow subprocess output when using pipe for connection
Date: Fri, 25 Aug 2023 23:39:23 -0400	[thread overview]
Message-ID: <d9bb6eab-ba2f-477c-b45d-8ae28e72a5ed@chris-hanson.org> (raw)

On Emacs 29, I've noticed when using the MIT/GNU Scheme interaction mode 
(xscheme.el) the output is extremely slow; it was fine in Emacs 28.

After a few hours of debugging, I found a fix.  In 
xscheme-start-process, I changed the following lines:

(setq process
       (let ((process-connection-type nil))
	(apply 'start-process
	       (cons the-process
		     (cons buffer
			   (xscheme-parse-command-line
			    command-line))))))

to

(setq process
       (apply 'start-process
	     (cons the-process
		   (cons buffer
			 (xscheme-parse-command-line
			  command-line)))))

This simply changes the connection type from pipe to pty.

That's surprising behavior.  Why is the pipe connection so slow?  Has no 
one noticed this because the default is to use ptys?

Any input would be helpful.  If there's no feedback, I'll file a bug.

Note that I don't read this list, so please include me in any reply.

Thanks,
Chris



             reply	other threads:[~2023-08-26  3:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-26  3:39 Chris Hanson [this message]
2023-08-27  8:35 ` Emacs 29 slow subprocess output when using pipe for connection Eli Zaretskii
2023-08-27  8:55   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9bb6eab-ba2f-477c-b45d-8ae28e72a5ed@chris-hanson.org \
    --to=cph@chris-hanson.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).