From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#44007: 26.3; Strange shell mode performance Date: Fri, 16 Oct 2020 10:25:23 +0200 Message-ID: References: <499ab53f-7c23-b5ed-6105-3072fffb4bfe@gmail.com> <83imbby3yt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12658"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 To: 44007@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 10:26:45 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 1kTL4X-0003CB-LH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 10:26:45 +0200 Original-Received: from localhost ([::1]:49508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTL4W-00083E-Kc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 04:26:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTL3s-0007cG-TB for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:26:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTL3q-0001Fh-4I for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:26:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTL3q-0005UW-17 for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Oct 2020 08:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44007 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160283673221060 (code B ref -1); Fri, 16 Oct 2020 08:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2020 08:25:32 +0000 Original-Received: from localhost ([127.0.0.1]:57576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL3M-0005Tc-2m for submit@debbugs.gnu.org; Fri, 16 Oct 2020 04:25:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTL3K-0005TU-Pu for submit@debbugs.gnu.org; Fri, 16 Oct 2020 04:25:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTL3K-0007S8-IH for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:25:30 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.10]:41947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTL3I-0000ve-KW for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 04:25:30 -0400 Original-Received: from [192.168.178.39] ([82.207.239.218]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N8G6I-1kP1XA2JZw-014Gf5 for ; Fri, 16 Oct 2020 10:25:24 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:fSHNEcCU7jXoUM1LmNAhVtcT57Az5YrfbHyqgcJZ1nlzd6+BpeI vvKGSq70XyEt4akNHpfa+psu8IT8tU7BM1EZl0CV+3A4/9CZMk7ro1gkrAgBQFJQRPlt07C r3KN0ASkleDi7ZGEUsokU7JdeMUKIwNDGzS7lpCr7wylh9GTNgfv4s/5Y7qgwQf3WYDl7Uj lNcLPrfSGFQODMazU0QMw== X-UI-Out-Filterresults: notjunk:1;V03:K0:qRlH8Kf8SLw=:n/r1Y5VhLoVRdoGB5xKgPM 82yFiqH2IOmo9vb0NT823OagspGlbwe14+n7+H2jNQAL+O+6NMHn/3AMSqaFMt9f4kzE0kz7j ztX1Tl0SIY6hKEJ9NlfybN2CDMfOS3TEzhyjxo4+t0/lERuiL6HebHPB3d8wLUDIDZLfm/87l jGOEA7mkqCeSVj279mqTNU2culCfE6QEzvRaLxWgvIaCb6pjQF7W60o0v/TkANafb2sVdJKSB pXbgAuzJDhwedes5Q6zL94pIA89mxCr1sWv6iIt93JPsXPWl784H2KEXqqZUU2GsCG3yfOKgA tpNwXVUn8ypNtrVSQoEhJ3MKGxy8mp3wc/Vfy2Ixt2W1r23Z9ifwP6CZAoiVWr8UbQrQVyn4r iFHt6WUs6zRA0mQIRPwCp/Xmd0iVgQ1VJ+esQSDA5cl4vc7tTkwAJnNSsLr2PHjt2eyPlY2z+ t4RYMJlKLg== Received-SPF: none client-ip=212.227.17.10; envelope-from=andreas.roehler@easy-emacs.de; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/16 04:25:25 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.019, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:190667 Archived-At: On 15.10.20 16:34, Herman, Geza wrote: > Sure! > > 1. execute emacs by "emacs -Q" > 2. M-x shell RET > 3. in the shell, execute "seq 100000" (or cat a large file) > 4. immediately after you hit enter on "seq 100000" press enter again > > It doesn't reproduce 100% unfortunately. It seems that if it doesn't > reproduce, you need to start from step 1., so it has a higher chance > to happen. > > Another strange thing is that enter can have the opposite effect as > well: if I press it during "seq 100000" several times (not immediately > after "seq 100000", but after ~1 sec), it can make seq slower. Instead > of the usual 3-4 sec, it slows down to >10 sec. > (I measured by "time seq 100000"). It seems that the more enter I > press, the slower it gets. But maybe it's a different issue. > > On 2020-10-15 16:10, Eli Zaretskii wrote: >>> 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. > > > > Can't reproduce example "seq..." with GNU Emacs 28.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5, cairo version 1.14.0) of 2020-06-10