From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39598: 26.3; Emacs is extremely unresponsive on a trivial python file Date: Fri, 14 Feb 2020 15:35:58 +0200 Message-ID: <831rqxp9z5.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="27402"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39598@debbugs.gnu.org To: Ivan Oreshnikov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 14 14:38:19 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 1j2bAh-000723-NL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Feb 2020 14:38:19 +0100 Original-Received: from localhost ([::1]:39084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2bAg-0000BB-Ph for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Feb 2020 08:38:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54452) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2b9U-0007Tm-O9 for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 08:37:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2b9S-0007sd-RX for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 08:37:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2b9S-0007sF-OF for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 08:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2b9S-00086h-HM for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 08:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Feb 2020 13:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39598 X-GNU-PR-Package: emacs Original-Received: via spool by 39598-submit@debbugs.gnu.org id=B39598.158168736731096 (code B ref 39598); Fri, 14 Feb 2020 13:37:02 +0000 Original-Received: (at 39598) by debbugs.gnu.org; 14 Feb 2020 13:36:07 +0000 Original-Received: from localhost ([127.0.0.1]:60993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2b8Z-00085T-Il for submit@debbugs.gnu.org; Fri, 14 Feb 2020 08:36:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2b8V-00084x-Ea for 39598@debbugs.gnu.org; Fri, 14 Feb 2020 08:36:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j2b8M-0006ZT-Nk; Fri, 14 Feb 2020 08:35:58 -0500 Original-Received: from [176.228.60.248] (port=3481 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j2b8M-0005wu-1F; Fri, 14 Feb 2020 08:35:54 -0500 In-reply-to: (message from Ivan Oreshnikov on Fri, 14 Feb 2020 11:48:43 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176048 Archived-At: > From: Ivan Oreshnikov > Date: Fri, 14 Feb 2020 11:48:43 +0100 > > 1. Open an empty python buffer. > 2. Insert a string "this is a test string" (including quotes) on the > first line of buffer. > 3. Copy it and insert it 10 times. > 4. Copy all the lines in the buffer and insert them 10 times more. This > should give you 100 lines of python strings. > 5. By the fifth paste command you can see 1 or 2 second delays before the > buffer is updated. > 6. After that navigating to the beginning or the end of buffer will > trigger a couple of seconds of hangup. Page scrolls can randomly > hangup. Iserting a blank line somewhere in the middle of the buffer can > cause a random 1 or 2 second delay as well. > > Those are some excerpts from the profiler report: > > - command-execute 48141 87% > - call-interactively 48137 87% > - funcall-interactively 48064 87% > - end-of-buffer 46719 84% > - recenter 46713 84% > - jit-lock-function 46713 84% > - jit-lock-fontify-now 46713 84% > - jit-lock--run-functions 46713 84% > - run-hook-wrapped 46713 84% > + # 46713 84% > > ... > > - redisplay_internal (C function) 4935 8% > - jit-lock-function 4899 8% > - jit-lock-fontify-now 4897 8% > - jit-lock--run-functions 4894 8% > - run-hook-wrapped 4894 8% > + # 4894 8% Please show the entire expanded profile. Thanks.