From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Thu, 04 Aug 2022 18:35:36 -0400 Message-ID: References: <8c7321f2f388e5343475@heytings.org> <6ea376f6-d503-06d8-6d83-50c52b695394@yandex.ru> <8c7321f2f3ac52bfee4b@heytings.org> <8c7321f2f3ec1ef81af9@heytings.org> <02e83b0e-1b5c-fe75-6e59-1f8ddff82d37@yandex.ru> <96f28fd8-6744-1925-0631-0095099362dd@yandex.ru> <74ddc877f1b74ab56d18@heytings.org> <83r11y5a9d.fsf@gnu.org> <83h72t5y2d.fsf@gnu.org> <83pmhg4le6.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56682@debbugs.gnu.org, gregory@heytings.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 05 00:36:18 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 1oJjRx-0009y8-Ms for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 00:36:17 +0200 Original-Received: from localhost ([::1]:35356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJjRw-0003ez-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Aug 2022 18:36:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJjRi-0003em-AN for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 18:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37297) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJjRi-00076u-22 for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 18:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJjRh-0006vB-RQ for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 18:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Aug 2022 22:36: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.165965255126589 (code B ref 56682); Thu, 04 Aug 2022 22:36:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 4 Aug 2022 22:35:51 +0000 Original-Received: from localhost ([127.0.0.1]:55279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJjRX-0006um-3n for submit@debbugs.gnu.org; Thu, 04 Aug 2022 18:35:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJjRT-0006uY-Tn for 56682@debbugs.gnu.org; Thu, 04 Aug 2022 18:35:50 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EDE9E100178; Thu, 4 Aug 2022 18:35:41 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1A02A1000EB; Thu, 4 Aug 2022 18:35:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1659652540; bh=XWEZCDl74BpmAUZTlCSeoYeXwHSqMQgZyLVDNRTsKz8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MnTgsGzBOFm7sHoMtYlbmBVFmW3h57bBTvDE6S5GYB5xPSXlYdPBiHNA6O5ZU/GD3 G20+DAibMNJj50RUdewgOJ1eNlycNAoQKsFAOO6Xe/ZP0qTbya/sa4gO3bRQAXyQgT t6jKfSpNOPk0nGWYv21iJW1gN3C3N1j3Kac2SxzJ5T0I7cGXKfKNU222YhBsx6IS94 RUVe1s9zCnD0rLj945G8/YOy1kXZTXrXANGChKqUxw2WTDQzCHRsQCpLqvjt/Y8/PH byBFpXW/TeIWtBvw/CLLPJ+njW7SOPxKgCCt3spKf7PyFcwIcLpwCIYHgmJTIfOxJv kgKtYQuPeokCg== Original-Received: from milanesa (unknown [46.44.221.102]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 25FD7120329; Thu, 4 Aug 2022 18:35:39 -0400 (EDT) In-Reply-To: <83pmhg4le6.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 04 Aug 2022 08:40:01 +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:238803 Archived-At: >> The wholelines problem did not kick in because of PPS nor `syntax-ppss` >> but because of font-lock (which then called `syntax-ppss` which then >> called PPS). > If it's font-lock that forces syntax-ppss to examine the whole huge > line, then what is your proposal for avoiding that which doesn't > involve some more-or-less arbitrary restrictions on the part of the > buffer that can be examined by syntax-ppss? The use of `syntax-wholeline-max` in `font-lock-extend-region-wholelines` supposedly fixed this problem since it changed `font-lock` so it doesn't ask `syntax-ppss` to compute the whole line/buffer. Stefan