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: Wed, 27 Jul 2022 06:55:32 +0000 Message-ID: <05388e8d8836c2e7ef3e@heytings.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> <83pmhuft5a.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="10666"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 09:16:08 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 1oGbH6-0002dJ-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 09:16:08 +0200 Original-Received: from localhost ([::1]:60570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGbH5-0007RH-6u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 03:16:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGaxe-00011z-5M for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 02:56:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36970) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGaxd-0004cw-TA for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 02:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGaxd-0000JT-Nk for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 02:56: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: Wed, 27 Jul 2022 06:56: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.16589049401173 (code B ref 56682); Wed, 27 Jul 2022 06:56:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 27 Jul 2022 06:55:40 +0000 Original-Received: from localhost ([127.0.0.1]:54952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGaxH-0000Ip-Lt for submit@debbugs.gnu.org; Wed, 27 Jul 2022 02:55:39 -0400 Original-Received: from heytings.org ([95.142.160.155]:54564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGaxB-0000Id-Vo for 56682@debbugs.gnu.org; Wed, 27 Jul 2022 02:55:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1658904932; bh=8aO9swQAacOqnnDjgUlZtBDJmkAa5nWA2xUT1eNh56U=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=bTp/jQ6Pf/R4S09EBpUsO4vDhldgvSHLrMxa3WrMN88ngZ72K6WGmy/oJxoCWjgLt ZsxlGpyuISsJqo4oLm022nwKrP0ll7WBJJAGRnU4eOBhN1kxUh97sj5Y4AP3DKpPTe UWusN4Jn9wn+FK1JyzFShBmCa/9B6QdwJHmypGSIBuaKVn5XUbMYPD4PStqIrfcwME ShAt99vuZJtBb8SfLeCbyYK02t5imoYuz/W8zaxqQ2Xu8nT9HfhmpZXRfjk9Nhk+GV EZ3f8FtYxAqLRwfpq94Li6I76PEEs24TdRTEuCz62+GUMbu0/IzC5Ib0gH0eb2IfFk i+zfAntoigBUw== In-Reply-To: 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:238002 Archived-At: > > But I'm seeing incorrect fontification. Is this one expected? > Yes, occasional mis-fontification is expected. It's a compromise between "no fontification" and "slow fontification". > > Perhaps something to do with the number 40000? > There is no magical number 40000 in the implementation, the buffer limits to which fontification-functions are constrained are determined dynamically, depending on the width and height of the window. My guess in this specific case is that the first instance of "Downloadify.Container" was fontified by the previous call to fontification-functions, and that the next chunk of text in which the two other instances of "Downloadify.Container" are contained was fontified by the next call to fontification-functions, which did not have access anymore to the place where Downloadify.Container is defined.