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#56682: Fix the long lines font locking related slowdowns Date: Tue, 16 Aug 2022 05:33:20 +0300 Message-ID: <83a684hq8f.fsf@gnu.org> References: <2c8d6755-cfe2-6559-3fde-3fa30ffb411e@yandex.ru> <83mtcgy44k.fsf@gnu.org> <83k07jx5jn.fsf@gnu.org> <866e510d-a060-7daa-d002-97861d056fa7@yandex.ru> <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> <12348081660379417@sas2-a098efd00d24.qloud-c.yandex.net> <66bbbb95983414e79637@heytings.org> <83wnbckp0q.fsf@gnu.org> <8e884ebe-2d2e-d599-15c3-a5cfe5e6b295@yandex.ru> <83o7wnl7ok.fsf@gnu.org> <036414cc-c711-efaf-ed5b-f8ccfaca0604@yandex.ru> <83v8qvj79c.fsf@gnu.org> <838rnqk8op.fsf@gnu.org> <83v8qtha89.fsf@gnu.org> <859945d6-87a6-d0d2-e693-8ebe21c328fd@yandex.ru> <83sflxh5c1.fsf@gnu.org> <6a72b305-ec92-8449-7a11-b006caadb707@yandex.ru> <83o7wlh2as.fsf@gnu.org> <52e0d4d6-f022-ffdf-8325-c4d1762b47a2@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 04:34:26 2022 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 1oNmPS-00037i-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 04:34:26 +0200 Original-Received: from localhost ([::1]:54870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNmPO-0000pd-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 22:34:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNmP4-0000pU-Rf for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 22:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNmP4-0003iH-Il for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 22:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNmP4-0006ox-EZ for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 22:34: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: Tue, 16 Aug 2022 02:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.166061722426181 (code B ref 56682); Tue, 16 Aug 2022 02:34:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 02:33:44 +0000 Original-Received: from localhost ([127.0.0.1]:44433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNmOm-0006oD-4P for submit@debbugs.gnu.org; Mon, 15 Aug 2022 22:33:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNmOh-0006nj-Ks for 56682@debbugs.gnu.org; Mon, 15 Aug 2022 22:33:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNmOb-0003fu-C9; Mon, 15 Aug 2022 22:33:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XARiQ1znYC7lqEKvb++vboDxgqgMyLImxCJHgYo2E0Y=; b=AU3s9Qalr5x5 cuFzfTlA2VvD7fFECui5VA7oWmovM+5jIXZUUdvTgl4oyxNq95xvcNJbqoAUmKsGHFpnQN5T2k3LY TZWfm2nRTUHNIuu1UcmkXMgJt1jvl1W4ibkidZm79/plDhqAyZTbImyYnD9jh6dMJhv7FCZwnFI40 7keZQqF+5/KzSToLBTW86T23pZxN4k9ByejX3AF/osgLmfrFRj42L7S/EbBX/DuwygBo+Pb5J53eu f1QHlD3PpYD0iRYcoW5tGn4Ko4oYQW8v4LRhFJS3iHkjh6w3gvdY9Wao2yJl7YiHthVGoWZ4AObbG HRPOxN52oswvqHmHe5jKGg==; Original-Received: from [87.69.77.57] (port=2494 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNmOa-00014m-GR; Mon, 15 Aug 2022 22:33:32 -0400 In-Reply-To: <52e0d4d6-f022-ffdf-8325-c4d1762b47a2@yandex.ru> (message from Dmitry Gutov on Mon, 15 Aug 2022 22:51:16 +0300) 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:239862 Archived-At: > Date: Mon, 15 Aug 2022 22:51:16 +0300 > Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca > From: Dmitry Gutov > > On 15.08.2022 19:58, Eli Zaretskii wrote: > >> Date: Mon, 15 Aug 2022 19:44:07 +0300 > >> Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca > >> From: Dmitry Gutov > >> > >>>> Here's the profiler output anyway: > >>>> > >>>> 1067 85% - command-execute > >>>> 1067 85% - call-interactively > >>>> 1023 82% - funcall-interactively > >>>> 1012 81% - end-of-buffer > >>>> 1008 81% - recenter > >>>> 1008 81% - jit-lock-function > >>> When did you last resync from Git? 'recenter' got "optimized" > >>> yesterday for buffers with long lines. > >> > >> Just today. > >> > >> In any case, it doesn't look like recenter's problem, since the output > >> says all (or vast majority) of its time is spent in jit-lock-function. > > > > AFAIU 'recenter' shouldn't at all call jit-lock-function in a buffer > > with long lines. Is this "emacs -Q" without any changes from > > defaults? > > It's a buffer without long lines. Simply a large file. ??? Are we talking about long-line.xml, or are we talking about some other file? We did nothing to change the behavior in large files without long lines. If you are saying that 'recenter' takes too long in some file, and therefore delays M-> for too long, it is probably a separate issue, so please report that as a separate bug, preferably with the file that causes it.