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: Mon, 15 Aug 2022 19:58:03 +0300 Message-ID: <83o7wlh2as.fsf@gnu.org> References: <837d3lzv8n.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9901"; 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 Mon Aug 15 18:59:13 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 1oNdQm-0002Pf-V9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 18:59:13 +0200 Original-Received: from localhost ([::1]:35586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNdQm-0006Vv-01 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 12:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNdQc-0006TW-79 for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 12:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNdQb-00034f-Uo for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 12:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNdQb-000128-MJ for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 12:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2022 16:59:01 +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.16605827093932 (code B ref 56682); Mon, 15 Aug 2022 16:59:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 15 Aug 2022 16:58:29 +0000 Original-Received: from localhost ([127.0.0.1]:43962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNdQ4-00011L-T8 for submit@debbugs.gnu.org; Mon, 15 Aug 2022 12:58:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNdQ2-000117-Bt for 56682@debbugs.gnu.org; Mon, 15 Aug 2022 12:58:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNdPv-0002yT-VA; Mon, 15 Aug 2022 12:58:19 -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=1jTGisSZF4oEgb5lTjpmL1QzPSsSwhiW6j3lXmlP+Ow=; b=gG+J4Lxt5sh1 yZSKSdKfBQ0U0m/01AKXlo4gYjfwDU+VeVFODmVTX5FZ2aJQoCVmN3lswT5qJRgIn34ZoEw3jQ1yI e4Co5fsKjfmG4d9fdG2fBjQ1T64+gGd118PnOgmNFgXU5xDyVNYPnlY3sTWVwQiY3t18yVugHwYsp +wG4LC97PgRLWBc9qXGJN/4t6zg0zNdrhFRDJg7FMrW9oQfZjGruN8whrSg96COfPR7XAJ+A0CjdZ +qzlKzecML9MbENA9PURnSWA9oxHEFfDqjoIScYhwElhEP4sVo6Er5rDiW5TcgqbGt1M9H5t/adxY wwkrpz8DiZY6JINRxGip0w==; Original-Received: from [87.69.77.57] (port=3301 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 1oNdPu-0000q8-HY; Mon, 15 Aug 2022 12:58:19 -0400 In-Reply-To: <6a72b305-ec92-8449-7a11-b006caadb707@yandex.ru> (message from Dmitry Gutov on Mon, 15 Aug 2022 19:44:07 +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:239819 Archived-At: > 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? > I just did 'make bootstrap' to be doubly sure: no change. What can I say? I'm stumped. It's definitely instantaneous here, in the long-line.xml file. Even if I don't turn off show-paren-mode.