From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Tue, 26 Jul 2022 14:22:25 +0200 Message-ID: References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> <8a3eaeef010995a5da8d@heytings.org> <83y1wgcbtj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002e32c105e4b45bcd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35677"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, Gregory Heytings , Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 26 14:26: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 1oGJdb-0008yT-3h for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 14:26:11 +0200 Original-Received: from localhost ([::1]:59732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGJdZ-0006Kv-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 08:26:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJaZ-000444-0Q for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGJaY-0008A2-NN for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGJaY-0000vk-B7 for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jul 2022 12:23: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.16588381683534 (code B ref 56682); Tue, 26 Jul 2022 12:23:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 26 Jul 2022 12:22:48 +0000 Original-Received: from localhost ([127.0.0.1]:52494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJaJ-0000uu-P2 for submit@debbugs.gnu.org; Tue, 26 Jul 2022 08:22:48 -0400 Original-Received: from mail-pl1-f176.google.com ([209.85.214.176]:34440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJaG-0000uc-HD for 56682@debbugs.gnu.org; Tue, 26 Jul 2022 08:22:46 -0400 Original-Received: by mail-pl1-f176.google.com with SMTP id z3so13171152plb.1 for <56682@debbugs.gnu.org>; Tue, 26 Jul 2022 05:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XkRQa+//tktKGGdktJmStdcsuKmZ8oww3d05lC3G4aE=; b=kATAzNjT89/lI/u3vxEOsnR7ddNvAPgSCasNy0BVEmD0a4+Z1QrnpD7+7rZ4JcYeSH UhKQPAG8ekHW+3yFYwsVI/H9FOnQej/9zVhWxB9u3PG5OO8WK4/sbLrB2E0rqyXtRupv SH0gfKyGp45w9QEgqcQbIbzjD9qiVgpdNGB2pJRhdqprBz9yxDBvmFmF6TNPF0QAfFON zGQ+PHm8XrblI1yPESxlS6yH70nclzTRxbFsmb6628nlIX+juvM68piOrUYYPXW6eX0s VvsZwrKUGkdiUcg/6lkoLE/4s3yO1NNSZRmrXBGX9vWvGbuXpid3aQairNr9f2RYMfkZ MRoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XkRQa+//tktKGGdktJmStdcsuKmZ8oww3d05lC3G4aE=; b=OQXQJBnVFr8folgMNqfSda1+ShKQ3cWlVGkLyNHMueb+hue2eQNQS2iWS2FcpNGeaQ XaabwrIuQSSl7/tkPHmjU2vX1fEudTMnnskGRbuLFpdRLT/mb0Pg5h6Di38FEhN9Seky b5UZsMfDMfDYv9KJ965JYEkz0Y5/7dKZ71zTeTmfpad/4rh6KRyjkgDOSDjfltVVhJxv oqe+nCHdFah0d+P/W2sWtJAwzZ9XWwE7ASwuib0N8nP9AryHFYiq6zEXUEZGQsL99S9r UGmKaiRNsxe24TBWZHqyppURbF62C8W0fv4Q7PI4zKsHRptNTSdQppGg2Fh2nd9KDqXw GEPg== X-Gm-Message-State: AJIora8EuNjBLqvcDUquxBVRijTbCiw5SnmzeQZ0F75kI5d1adiiN6Cw UxSfIViLACAMChd+7niLiK8BXLj17bOawLLHAbQ= X-Google-Smtp-Source: AGRyM1saJNUnp39zLtlqvnmVm1qScOUfwJja+4ZwAVztacmopCObyG4mqLvM9FEL8Hcs/8lxPRRyEuwqSQjqVthp9Gc= X-Received: by 2002:a17:902:ef47:b0:16c:60df:3a7c with SMTP id e7-20020a170902ef4700b0016c60df3a7cmr16823425plx.9.1658838158551; Tue, 26 Jul 2022 05:22:38 -0700 (PDT) In-Reply-To: <83y1wgcbtj.fsf@gnu.org> 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:237949 Archived-At: --0000000000002e32c105e4b45bcd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is on Gregory's branch. On Tue, 26 Jul 2022, 14:12 Eli Zaretskii, wrote: > > From: Gerd M=C3=B6llmann > > Cc: Eli Zaretskii , 56682@debbugs.gnu.org, > > monnier@iro.umontreal.ca > > Date: Tue, 26 Jul 2022 08:51:54 +0200 > > > > Gregory Heytings writes: > > > > > Hmmm... After 350e97d78e, Isearch locks Emacs with > > > toggle-truncate-lines. Recipe: > > > > > > C-x C-f long-line.xml > > > C-x x t > > > C-s > > > > > You have to kill Emacs, C-g does not work. > > > > That's kind of funny :-): > > > > (setq isearch-lazy-highlight nil) > > Did you try this on master or on the feature branch? > > And I found that customizing lazy-highlight-max-at-a-time and > lazy-highlight-interval can alleviate the problem to some extent. > > The reason seems to be that lazy-highlighting tries to highlight every > match "in th window", but its interpretation of "in the window" seems > to be "buffer position before window-end position". Which of course > includes a lot of stuff in a window with truncate-lines. > --0000000000002e32c105e4b45bcd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is on Gregory's branch.=C2=A0

On Tue, 26 Jul 2022= , 14:12 Eli Zaretskii, <eliz@gnu.org= > wrote:
> From: Gerd M=C3=B6= llmann <gerd.moellmann@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,=C2=A0 56682@debbugs.gnu.org,
>=C2=A0 =C2=A0
monnier@iro.umontreal.ca
> Date: Tue, 26 Jul 2022 08:51:54 +0200
>
> Gregory Heytings <gregory@heytings.org> writes:
>
> > Hmmm...=C2=A0 After 350e97d78e, Isearch locks Emacs with
> > toggle-truncate-lines. Recipe:
> >
> > C-x C-f long-line.xml
> > C-x x t
> > C-s </
> >
> > You have to kill Emacs, C-g does not work.
>
> That's kind of funny :-):
>
> (setq isearch-lazy-highlight nil)

Did you try this on master or on the feature branch?

And I found that customizing lazy-highlight-max-at-a-time and
lazy-highlight-interval can alleviate the problem to some extent.

The reason seems to be that lazy-highlighting tries to highlight every
match "in th window", but its interpretation of "in the wind= ow" seems
to be "buffer position before window-end position".=C2=A0 Which o= f course
includes a lot of stuff in a window with truncate-lines.
--0000000000002e32c105e4b45bcd--