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 14:37:26 +0300 Message-ID: <837d40ds09.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> <8a3eaeef010995a5da8d@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37554"; 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 13:39:51 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 1oGIul-0009YK-8g for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 13:39:51 +0200 Original-Received: from localhost ([::1]:52168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGIuk-0004gm-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 07:39:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGIt0-0003iP-Ts for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 07:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGIt0-0008AE-6c for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 07:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGIt0-0007wC-3E for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 07:38: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, 26 Jul 2022 11:38: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.165883545630450 (code B ref 56682); Tue, 26 Jul 2022 11:38:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 26 Jul 2022 11:37:36 +0000 Original-Received: from localhost ([127.0.0.1]:52390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGIsa-0007v4-9w for submit@debbugs.gnu.org; Tue, 26 Jul 2022 07:37:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGIsV-0007un-Nb for 56682@debbugs.gnu.org; Tue, 26 Jul 2022 07:37:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGIsP-00084z-P8; Tue, 26 Jul 2022 07:37:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=doBXq7SYLEdWZTREaWSkhVImJKi+gz9IP0LTDGbM/As=; b=BArbhU6qn6cSUb6zZdQW 2JHzTXNngg4x9fOie4upFt2dFF2dn1tIM+xYzNGyiaeesc/iLYKIf1PlROK8kAq3DzQxtObRHRV0T IdGV7mcghEm/YZYNMDRgRLmzT9jjRxA+zgYV3m/P/3xBNXhBU/6dAIjzhO0Mmtndsqqxe1hbLmCz8 p7fKg2QnbDNU1Hmtgl3NHronFhKlGgI4LyhdY/raq7vTcQ1JN5krTY0bKYgeNkngVbqPAWR/8C7Sn 27QE7vXoO0+zp+3hxL9EjZTAcyCeFm1qOa5LIRrZWcWCstFw7Tclg69N9BgXVlbBE2q8enVv+fobT Pv2IebCOqloHmg==; Original-Received: from [87.69.77.57] (port=2352 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 1oGIsM-0001SJ-Qg; Tue, 26 Jul 2022 07:37:25 -0400 In-Reply-To: <8a3eaeef010995a5da8d@heytings.org> (message from Gregory Heytings on Mon, 25 Jul 2022 21:47:55 +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:237937 Archived-At: > Date: Mon, 25 Jul 2022 21:47:55 +0000 > From: Gregory Heytings > cc: Gerd Möllmann , > 56682@debbugs.gnu.org, monnier@iro.umontreal.ca > > > And I've found a serious sink of CPU cycles under truncate-lines, and > > installed a fix on the feature branch. Gerd, if you have time to > > eyeball the fix and comment on it, I'd appreciate. It's commit 350e97d > > on the branch. (I can post a more detailed explanation of what I did > > and why, if that would help, because the code and the functions it calls > > are somewhat tricky.) > > 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.