From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Re: Performance issues with long lines in shell mode Date: Sun, 10 May 2020 09:26:41 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="97820"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 10 09:19:44 2020 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 1jXgFS-000PLg-SW for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 May 2020 09:19:42 +0200 Original-Received: from localhost ([::1]:58370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXgFR-000873-D4 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 May 2020 03:19:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXgF7-00086k-M9 for help-gnu-emacs@gnu.org; Sun, 10 May 2020 03:19:21 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]:41139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXgF6-0005yh-Lj for help-gnu-emacs@gnu.org; Sun, 10 May 2020 03:19:21 -0400 Original-Received: from [192.168.178.39] ([82.207.239.51]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N1xZX-1j95yO0loH-012KFu for ; Sun, 10 May 2020 09:19:17 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:Oa1PDbq42rrozXhbeJjFK1hb+5z3NE0uO7HI2IjEzlCcBapIxPN c9epVR8SEtfcX3oqo4BFUiPKp58pTvsuc2nTw9Yo9JYniWMov7PqHd8brkPdtLJzuhWW7Qn AibQ2qxUq2ZJ9LjWF6CBZxB61TsXWOr9ytqGiI+qkzmhkU7nvfriA3ojf7N4AOboyg4aZKV MNNZynqGmJhRgpAz5bwPw== X-UI-Out-Filterresults: notjunk:1;V03:K0:HLU55qMQvuI=:xFkPNaCVobke1sMydVwlak 0ohnoFasaIvSABP2JCXT8A1PzeNwxajdjDS8nx6rIFY9X9CTpnB2hJAo1tKv1M9Qo1Pc09LlY T3K0/lEdai5nomUJQAGQ5pzPjj3CANHekPdGv+vvIRoIrfQTABHjLl5F4FuTfRxWjfxRTMn3z j79gnP2lFWseG2ulAwcwXBpsatxHVsdkyLGapSIPiB9Cqm6M2CWbD1YJXWEydzDSdCupORsTl j3XzmfNIlESTL9Xeyq/si7xklJ5OA0uPwTciTQRx0ty6ZSC1hnxEjSuYzzo4xyEKqsHmWrHaG Xbu5/twsQqElPE26SSuF8scgF+GuUAjXdMIMF+TDGXg/aoJ/BOS4CGlnEDe1RhmU/1F9FLk0b S0yDOfoEq9ES1dKyuQSmkhJWmLfc4Who+Ge0hoecvet8MDSybQCJC87SGrJdSWQ4DGoobPFSv iHt6wfwwKUky610cLJ1P+ZTNUxVbdXM7FRkpBEuolv2iGLCXhWpiIcqDPeTjC3pPJXhTrfJc7 U6zIck5lOUV/TY7bksjBMgc3aLTncx4cCPxc7OZorCo1nMj4NDwhwqQpZVmN1Oj2Ypna6H0E/ vFEwg5AwIl0TXn67u0OK4N9mbw8AGMMk2N1/rbRYmk9GWI/bLi7/aXWuku2cd/M42DXwkIUiG 0Vpb8A+OUZ8fj5LulTZdSLIb54xxP5OeaobSeANtSvjOGhE/v2w5BRs7F8hagmO/5HTEmyoKZ soLzNa02P5HkrIuO8wCmORvP9JrTRUOLBq/kHfFtjYALxQ1TzPDrOsWZIlKXpfkXFgJjq2fQ Received-SPF: none client-ip=212.227.17.13; envelope-from=andreas.roehler@easy-emacs.de; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/10 03:19:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:123053 Archived-At: On 07.05.20 18:40, David Karr wrote: > I'm using Cygwin Emacs v26.3. > > I use shell buffers in Emacs very often. Some of the command lines I run > end up producing output with a large number of lines, and sometimes with > very long lines. If the output is a large number of lines, it doesn't > present any particular problem. However, if it ends up producing very long > lines (equivalent of a hundred lines or more), I find that it gets very > slow. I generally don't even keep my cursor at the end of the output, so > it's adding output that I'm not even seeing. However, I can still tell that > it's running slowly. If I occasionally jump to the end of the output, I see > it sending characters in bursts, but much less than a line at a time. > > If I know that what I'm about to run will create long lines, I generally > try to remember to pipe it directly to a file and then open that file. That > goes much faster than letting it output to the shell. > > Is there some mitigation I can configure that will help with this? AFAIU there might be a solution avoiding interactive use of shell, sending stuff to some shell-process buffer instead while not displaying the latter. Considering the display-engine possibly causing the slowness. May you provideĀ  an example-caseĀ  suitable for benchmarking? Best, Andreas