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: Sun, 24 Jul 2022 18:05:21 +0300 Message-ID: <83pmhuft5a.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> <837d43j198.fsf@gnu.org> <83y1wjhkkh.fsf@gnu.org> <83wnc3hkdg.fsf@gnu.org> <49df74e5-e16a-a532-98d1-66c6ff1eb6c6@yandex.ru> 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="25368"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 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 Sun Jul 24 17:06:10 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 1oFdBJ-0006Ox-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 17:06:10 +0200 Original-Received: from localhost ([::1]:48688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFdBI-0001xS-BX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 11:06:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFdBC-0001xI-7t for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 11:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFdBB-0006Jp-V8 for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 11:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFdBB-0008IE-Mh for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 11:06: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: Sun, 24 Jul 2022 15:06: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.165867513031822 (code B ref 56682); Sun, 24 Jul 2022 15:06:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 24 Jul 2022 15:05:30 +0000 Original-Received: from localhost ([127.0.0.1]:48472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFdAf-0008HC-Md for submit@debbugs.gnu.org; Sun, 24 Jul 2022 11:05:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFdAd-0008Gv-0T for 56682@debbugs.gnu.org; Sun, 24 Jul 2022 11:05:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFdAX-00069N-GY; Sun, 24 Jul 2022 11:05:21 -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=kodm0tcgcAdn+lnGm6War5XGmtiBYUMV8OgPEh74B0Y=; b=ahxghBEWfz626KqzppqH thYPJniV4DtDp15K2+EX+LIiqllddXqtq11Zhvl0XJ7OLgQ4snThfrlYAGk29qTT59dO63KPHyAHH aX0F2IDhxWZlkR8u4hWBUcyZLORhjPP/hBMOY1RQ+3b1fPCgf+TXByh85rIRdb/HetDMn3Nt2wxSf epDQ/+1WbvS0WiTz+QISV/hzrQFVMTxb3FYV9CxYsZQ+XbGfmjt4jnj0IPE5aodg0twIoVOe1ZfuL POqDs+gwT9dSGtvYtZt6hQF5zdw1bhRov4/LfWBJwdmHVr11Omvuqx4e76nCDWYia4yE01Rum4f7Z Q5+Vq6RmlOv8tg==; Original-Received: from [87.69.77.57] (port=1420 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 1oFdAX-0005jD-0g; Sun, 24 Jul 2022 11:05:21 -0400 In-Reply-To: <49df74e5-e16a-a532-98d1-66c6ff1eb6c6@yandex.ru> (message from Dmitry Gutov on Sun, 24 Jul 2022 17:35:19 +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:237842 Archived-At: > Date: Sun, 24 Jul 2022 17:35:19 +0300 > Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca > From: Dmitry Gutov > > On 24.07.2022 08:50, Gerd Möllmann wrote: > > Eli Zaretskii writes: > > > >>> My bet is indeed on the mere presence of text properties, plus the > >>> fact that we need to merge faces. But I could well be wrong. > > Can't say something about face merging, but "frequent" changes of faces > > certainly have an effect on iterator performance. It stops, looks up > > properties again to determine the next stop pos, does what has to be > > done for current properties... > > But the problem is contingent on having long lines, isn't it? Not necessarily, see the times I measured scrolling through xdisp.c, which I posted earlier. It could be that with long lines font-lock just makes it slower still, to the point where it becomes unbearable. > There must be some interplay between those circumstances. Not just > having to look up faces (relatively) a lot. What else did you have in mind?