From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Mon, 25 Jul 2022 21:47:55 +0000 Message-ID: <8a3eaeef010995a5da8d@heytings.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15262"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , 56682@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 25 23:48:12 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 1oG5vv-0003gV-H2 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jul 2022 23:48:11 +0200 Original-Received: from localhost ([::1]:32792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oG5vt-0004Ac-Js for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jul 2022 17:48:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oG5vn-0004A0-A6 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 17:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oG5vn-0002zy-1s for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 17:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oG5vl-000601-RC for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 17:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2022 21:48: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.165878568023048 (code B ref 56682); Mon, 25 Jul 2022 21:48:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 25 Jul 2022 21:48:00 +0000 Original-Received: from localhost ([127.0.0.1]:51576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oG5vk-0005zd-5n for submit@debbugs.gnu.org; Mon, 25 Jul 2022 17:48:00 -0400 Original-Received: from heytings.org ([95.142.160.155]:52630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oG5vh-0005zG-Cf for 56682@debbugs.gnu.org; Mon, 25 Jul 2022 17:47:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1658785676; bh=nEuaBHWIcmDNwWjyCjMWTvy94XKDedFTc0ulJDpMxfM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=yiviB48e6HnvLR4zV6rA9uUedLLtNPkM+y+MCGZAlsNfxUZT52QhUHoiHTcFKibz4 qXP0gNz4N6cQvOFPdfxlXE0dl8nfPx5kqwEXrNm7nwvUrJUzNSWVJHaif6De9aIgkN oCgKVzfR4ydgbRiIRa4m8S2wdEWF2PLSe2z+Xj4tbRtRNiUJCZjoXWEMhGgZ2SI7JH 71nEFa8tN+YrF21wB5bWZIG+kVSNqONlSHpmuIwfDJ68edo0nOZyp/0dPVL/zWGCeg UihSjcJxgTVT6L9wUedvD/ogLvD6WwLTjiwD1Jf1zpAwRwfLYWpYGJJOccdcKPYBE4 +/ZtolfmOtZnQ== In-Reply-To: <83bktghrn0.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:237909 Archived-At: > > 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