From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Herman=2c_G=c3=a9za?= Newsgroups: gmane.emacs.help Subject: Strange shell mode performance Date: Wed, 14 Oct 2020 12:49:06 +0200 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="20910"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 14 14:57:25 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 1kSgLN-0005IJ-7Y for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 14:57:25 +0200 Original-Received: from localhost ([::1]:51926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSgLM-0003SO-7q for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 08:57:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSeLI-000561-LZ for help-gnu-emacs@gnu.org; Wed, 14 Oct 2020 06:49:12 -0400 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:41721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSeLG-0000vy-UD for help-gnu-emacs@gnu.org; Wed, 14 Oct 2020 06:49:12 -0400 Original-Received: by mail-ed1-x530.google.com with SMTP id l24so2608862edj.8 for ; Wed, 14 Oct 2020 03:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=uo2Ln51BJK7x2nX7Fn4qemBK3t5HtNO1t1eX5gL7D8Y=; b=dpqxvfHFsfCLlFML2TbMhOPjbI6IkL7XkWr7bqJA8xY+WVq6NlAq8cu0pis86gB7kv lyZnUfrxWA8cu5PlcRi7tm1DS7eO46lonpBwLh2hp6TJmKleHiR37vgqiZScrlfOfJbE 3tKmLrCiSYFGm6VxqqhXzKvsCczuWD+TX3G2JS4j4XZxJaHJBskDnlyeL1a+gp5Umtun +1RHMvzfOVWkSkWRI8aOvA4Qu8qjxQ/BtWHJbQCMV6YqvLGz1SlatCMsS5iaXfxa1j5v xjfmgD3V2UG9bJ38YcLhKS/72ZXhjl2hTCq1xwJ/xMxOdcWsQypPLG20gRusprfBk3rl VBaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=uo2Ln51BJK7x2nX7Fn4qemBK3t5HtNO1t1eX5gL7D8Y=; b=l+XoFUkMaDOiCP1OCiYY5uUsxGCcam5ZfXkYY8yppoGd0Jk6ZKokxNN13kdRRWQzP4 ut4YhC4IzMNZbCd6YqPsmXZq7mGfrobI0FKTLrULzCmqE9J5U7jRhrMWrVi0yer5YIHf jDVrMA3SXx2hUF1752sQtBdyjx9m9BwyWkzRCPhyyG6a6MhWT6Rq1p5so0bJe7oPKAoG 0Yp4huTS3KCsgxNKfaK2/s61COL77X0YaDBCMTCNTPXGfKE4i9SlN5N24gXj6lEqs/9Z vVcoXMwZUXS0wYNdbFmcATJ3Y6xFSjDZ7NN2wQfQkJNsTASjULLlNa2+678GAi10AubO X3GA== X-Gm-Message-State: AOAM5338mgrOxcuvHpVbqs864C+WWvjPd/lPSHPUY4vL8wxWXin7cBG0 rZINYD0AR+1xy8HZ32iFnzM= X-Google-Smtp-Source: ABdhPJwUx68atV9yoYQ6ez91fqtQrQ9gLsmhjDCJn2KZqBTAVQ0Jf/qYnU4ZeR87OfHwSvHhksKP0A== X-Received: by 2002:aa7:c7c2:: with SMTP id o2mr4626113eds.366.1602672548003; Wed, 14 Oct 2020 03:49:08 -0700 (PDT) Original-Received: from [192.168.8.4] (netacc-gpn-34-232-185.pool.telenor.hu. [37.234.232.185]) by smtp.gmail.com with ESMTPSA id m6sm1662550ejl.94.2020.10.14.03.49.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Oct 2020 03:49:07 -0700 (PDT) Content-Language: sv-FI Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=geza.herman@gmail.com; helo=mail-ed1-x530.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 14 Oct 2020 08:56:58 -0400 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:124457 Archived-At: Hi all, 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) It happens with 26.3 and ~3-week-old master branch as well, without any extra config (emacs -Q). Any ideas what causes this? Would it be possible to always have the better performance without needing to press enter? Thanks, Geza