From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44007: 26.3; Strange shell mode performance Date: Thu, 15 Oct 2020 17:10:50 +0300 Message-ID: <83imbby3yt.fsf@gnu.org> References: <499ab53f-7c23-b5ed-6105-3072fffb4bfe@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2654"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44007@debbugs.gnu.org To: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 15 16:14:42 2020 Return-path: Envelope-to: geb-bug-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 1kT41i-0000aq-Lq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 16:14:42 +0200 Original-Received: from localhost ([::1]:42750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kT41h-00007j-HT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 10:14:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kT3yA-0004tN-HE for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 10:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kT3yA-0004jM-7R for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 10:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kT3yA-0007EZ-1e for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Oct 2020 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44007 X-GNU-PR-Package: emacs Original-Received: via spool by 44007-submit@debbugs.gnu.org id=B44007.160277104627785 (code B ref 44007); Thu, 15 Oct 2020 14:11:01 +0000 Original-Received: (at 44007) by debbugs.gnu.org; 15 Oct 2020 14:10:46 +0000 Original-Received: from localhost ([127.0.0.1]:56127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT3xu-0007E2-48 for submit@debbugs.gnu.org; Thu, 15 Oct 2020 10:10:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT3xs-0007Dq-BU for 44007@debbugs.gnu.org; Thu, 15 Oct 2020 10:10:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51183) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kT3xn-0004cK-3F; Thu, 15 Oct 2020 10:10:39 -0400 Original-Received: from [176.228.60.248] (port=2748 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kT3xm-0000FS-D5; Thu, 15 Oct 2020 10:10:38 -0400 In-Reply-To: <499ab53f-7c23-b5ed-6105-3072fffb4bfe@gmail.com> (Herman@debbugs.gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190582 Archived-At: > From: Herman@debbugs.gnu.org, Géza > Date: Thu, 15 Oct 2020 11:53:16 +0200 > > I'm experiencing strange shell (comint) mode performance. If I cat a 10 > MB file, it takes 1:20 to cat it. Emacs uses only 30% cpu. But, if I > press enter after I send the cat command, it speeds up, and it only > takes 8 sec (emacs cpu usage goes up to 100%). > > Same thing: if I execute "seq 100000" in a small emacs window, it takes > ~3 seconds. But, if I press enter after executing seq, it takes only 0.4 > sec (this is not 100% reproducible, sometimes pressing enter doesn't > make a difference). > (I executed comint-clear-buffer before measurements) Can you please describe a detailed reproduction recipe, starting from "emacs -Q"? It is not exactly clear from the above whether you do this in a shell-mode buffer or in some other mode, where exactly do you press Enter, etc. A detailed recipe will resolve all those unclear aspects. Thanks.