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: Mon, 15 Aug 2022 15:45:12 +0300 Message-ID: <83zgg5he07.fsf@gnu.org> References: <83k07jx5jn.fsf@gnu.org> <866e510d-a060-7daa-d002-97861d056fa7@yandex.ru> <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> <12348081660379417@sas2-a098efd00d24.qloud-c.yandex.net> <66bbbb95983414e79637@heytings.org> <66bbbb95983475c5f3b0@heytings.org> <0d67f253-c080-d750-c2cb-4a9591ff8c6c@yandex.ru> <83lerrl734.fsf@gnu.org> <83wnbbj7v4.fsf@gnu.org> <75c316c0-3346-e702-b114-41a7f899deb1@yandex.ru> <5900f20836ca3f305df8@heytings.org> <8ef8eaba-1add-e87e-247e-71888beaf1f8@yandex.ru> <837d3ak8lf.fsf@gnu.org> <14516fce-8c35-1ce7-1314-44a3d79e8ba7@yandex.ru> <834jyek7df.fsf@gnu.org> <29b571a3-5a47-fed9-3147-f30864134c41@yandex.ru> <83tu6ei6e0.fsf@gnu.org> <83a685iv2d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25845"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Mon Aug 15 14:46:47 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 1oNZUV-0006aD-Ax for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 14:46:47 +0200 Original-Received: from localhost ([::1]:46724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNZUT-0007fE-QA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 08:46:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNZTm-0007cj-U9 for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 08:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNZTm-0003s5-JW for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 08:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNZTm-0008Rq-E2 for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 08:46: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: Mon, 15 Aug 2022 12:46: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.166056753932436 (code B ref 56682); Mon, 15 Aug 2022 12:46:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 15 Aug 2022 12:45:39 +0000 Original-Received: from localhost ([127.0.0.1]:41188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNZTO-0008R5-QI for submit@debbugs.gnu.org; Mon, 15 Aug 2022 08:45:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNZTK-0008Qq-7D for 56682@debbugs.gnu.org; Mon, 15 Aug 2022 08:45:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNZTE-0003k2-JG; Mon, 15 Aug 2022 08:45:28 -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=PhL+ZkB3yAdK13hW0iFQMK2Xm7TAI6SvCiInV52SCnM=; b=l1qR0O0zUqOc u/PX+rAzhjxzOvszoQ51flqInJqGEgjmEI3zzwVnAlmQ0sv9c3dnl9IQuaIl+MwAa+wExZspcc3jD C5/EvfFF7h9Z4P8UppTTQiqLtfjl00xHHCna/+m2X234AxJzKEd8bI4bljmdgxW55XxdhS0gpJTnc 68Q7cbsMUz7qaTAMXby8QwOiLBQtDIpafSOvhlEVgQOsc93ziOBg+ddN+mSlZ4v0tVsiOIPc4nXZo gW5NakRt4Yj8MKdVhQ9/kepUSft6Bdzu7PDUpUbOp5YxH63DAXXYt3PxRS+jXonz09qhuaiDQsnrq aLY3f8x2lOwKuQ3Os4rSjQ==; Original-Received: from [87.69.77.57] (port=3609 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 1oNZTC-0008Gg-Vv; Mon, 15 Aug 2022 08:45:28 -0400 In-Reply-To: (message from Dmitry Gutov on Mon, 15 Aug 2022 15:06:35 +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:239793 Archived-At: > Date: Mon, 15 Aug 2022 15:06:35 +0300 > Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca > From: Dmitry Gutov > > >> It would make sense for our defaults not to be tailored to this very > >> particular development rig. > > > > If you are willing to lose my ability to debug complex redisplay > > problems in many cases, sure, go ahead. > > Why? You would customize an option to a lower value, and go on to debugging. I will forget to do it and waste time. > >> syntax-propertize is general, and yet it invokes language-specific rules > >> (through syntax-propertize-function). > > > > Nothing prevents xdisp.c from invoking those same rules if needed. > > True. We could basically rewrite any Lisp function we have in C > (font-lock-fontify-region, for example). No need to go ad absurdum. I was responding to your assertion that this must be done from font-lock.