From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Chris Hanson Newsgroups: gmane.emacs.help Subject: Emacs 29 slow subprocess output when using pipe for connection Date: Fri, 25 Aug 2023 23:39:23 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14693"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 27 10:26:52 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qaB6i-0003co-9K for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 10:26:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaB66-0002qJ-Ph; Sun, 27 Aug 2023 04:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZk97-0006wn-I6 for help-gnu-emacs@gnu.org; Fri, 25 Aug 2023 23:39:33 -0400 Original-Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZk93-0003MK-OA for help-gnu-emacs@gnu.org; Fri, 25 Aug 2023 23:39:33 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id E1C311BF205 for ; Sat, 26 Aug 2023 03:39:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chris-hanson.org; s=gm1; t=1693021165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GbbmZ+OLPSOeByIsY+CguKQo9PAyTDgVIrgrJ5nwLbY=; b=TkfjubIkGp5m1YGBCmAtXZrr6ivhEYEOlWFgzPzemYu+hwEROftphnrOmNoIjOJcY5Dfy9 siDsBoTefRLb44m0k5LWsrvLDuof4B6ffxLDF/7Q5T6Ldood3boKfJqpaISvdPPJ9l6+PI TClO7eDOR1bRhe3W55TFH42s1rxk+mbP2ck+R6MOMRbgvcFQU6mw1ATrvXRFfyPgYiFv+I mfyY7W9kAcWWxAJCPmulhKcl9N5fWS+nSDetfGMo3CjOR2J/hl+mVDxxjWo4fXlU8HGWv8 7IluuaKZhKX4OHkzv+aR0K1qFHbXt96NqEnJCm8eM4BF/IDVwzUXgS88Wrz5Sg== Content-Language: en-US X-GND-Sasl: cph@chris-hanson.org Received-SPF: pass client-ip=2001:4b98:dc4:8::228; envelope-from=cph@chris-hanson.org; helo=relay8-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 27 Aug 2023 04:26:12 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144974 Archived-At: 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