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, 26 Jul 2022 15:09:38 +0300 Message-ID: <83zggwcby5.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> <8a3eaeef010995a5da8d@heytings.org> <837d40ds09.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36510"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, monnier@iro.umontreal.ca To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 26 14:10:25 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 1oGJOK-0009ME-Tv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 14:10:25 +0200 Original-Received: from localhost ([::1]:47034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGJOJ-0005Aj-Pi for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 08:10:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJNy-00059T-DY for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGJNy-0005dj-2h for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGJNx-0000VC-O6 for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:10: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: Tue, 26 Jul 2022 12:10: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.16588373841901 (code B ref 56682); Tue, 26 Jul 2022 12:10:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 26 Jul 2022 12:09:44 +0000 Original-Received: from localhost ([127.0.0.1]:52448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJNf-0000Ua-MO for submit@debbugs.gnu.org; Tue, 26 Jul 2022 08:09:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJNd-0000UM-BD for 56682@debbugs.gnu.org; Tue, 26 Jul 2022 08:09:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJNX-0005aN-M5; Tue, 26 Jul 2022 08:09:35 -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=kzDPs+7nLr+H0K7Q4BEOg4M186+CuJtE3Hlotq6B1Ug=; b=qzq6Hz3dubm6 bf76EFuVcI0RXoEEkhz+gl/pw8r53JfWYPdd6bz+fqinjhqUNJcWO7HZKENfAXRoDWkyEhn943KM5 SS8Pwk7WIIt5Ikeq68Bw/TBkU0wx1mzqRXg1VxTWOqbFOJ4j2rHgJYSDerx8ZKrXqE2hWMLAcAcvv 2pr63e7DPtZvKnyjgTQ2mbBzdfWKkrRUaVgsk9veC3M444CqOW/H+WdPy9FpObBd/qtwujwuXFhCG cv7wRgmv5oT+DxwPzATJclmYosoHGgpO1MRbbjI6qrOL8ZQDThKi80vjppAm4hpec//WTNN5uyDwB RYfqbm6xjZ0egJdEi3iKoQ==; Original-Received: from [87.69.77.57] (port=4397 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 1oGJNX-0003DC-5A; Tue, 26 Jul 2022 08:09:35 -0400 In-Reply-To: (message from Gregory Heytings on Tue, 26 Jul 2022 11:53:28 +0000) 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:237944 Archived-At: > Date: Tue, 26 Jul 2022 11:53:28 +0000 > From: Gregory Heytings > cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, monnier@iro.umontreal.ca > > > >> 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. > > > > I see the same on master, where that change is not yet installed. > > Are you sure? I don't see the same at 304e2a3a05. C-s is slow, but it > does not hang Emacs, and the effect of C-s of seconds. I don't know the difference between "slow" and "hang". Gerd says it eventually finishes, so it isn't a "hang" at least on his machine. And my build is unoptimized, so what is "slow" for you probably qualifies as "hang" for me. If you disable lazy-highlighting, does the problem go away? And if you customize lazy-highlight-interval and lazy-highlight-max-at-a-time to reasonable values, doesn't the "hang" becomes much shorter?