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: Fri, 05 Aug 2022 10:43:26 +0300 Message-ID: <83h72r16g1.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8a3eaeef01be5bfaa5ef@heytings.org> <05388e8d8812bfa3695d@heytings.org> <83v8rf5894.fsf@gnu.org> <65cb7c73fd4a999cca00@heytings.org> <8c7321f2f3400a5db9be@heytings.org> <8c7321f2f388e5343475@heytings.org> <8c7321f2f36494299e61@heytings.org> <8c7321f2f336523624e3@heytings.org> <83r1202meh.fsf@gnu.org> <6020ffaf-9069-0070-76cf-a13379ef01b5@yandex.ru> <83les71ilg.fsf@gnu.org> <06c5560d-3009-e5a5-3d33-fe5d2ec32d6b@yandex.ru> <74ddc877f17a06d8f120@heytings.org> <100d08b3-c25b-683f-6def-39052107ab59@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12381"; 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 Fri Aug 05 09:44:22 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 1oJs0L-000372-3Y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 09:44:21 +0200 Original-Received: from localhost ([::1]:43988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJs0K-0007ie-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 03:44:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJs04-0007hO-BI for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 03:44:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJs02-0007tE-MK for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 03:44:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJs02-0004ma-E4 for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 03:44: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: Fri, 05 Aug 2022 07:44: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.165968541618335 (code B ref 56682); Fri, 05 Aug 2022 07:44:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 5 Aug 2022 07:43:36 +0000 Original-Received: from localhost ([127.0.0.1]:56020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrzb-0004le-VP for submit@debbugs.gnu.org; Fri, 05 Aug 2022 03:43:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrza-0004lT-OT for 56682@debbugs.gnu.org; Fri, 05 Aug 2022 03:43:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJrzT-0007qA-KJ; Fri, 05 Aug 2022 03:43:29 -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=XBlJtGSYNboiuz+NQls/GxTChSEwEg9DbQEehBXrRNY=; b=Nbi6XtQ3hssq 0cnZjVVYxwlxbvF5F4Hu09Q9fPybeI0PxVDV+ze/55suLB1d7j0sAZYBqsRQ4Cm5FUy2NK0QeJb1S 8DzGssbTJsskZ5tERY3I2M4X3I5UsphD8RFjM9VaKWoHA1rtO4tTK8ZIGNALvCYcUq1qgvEoT25P3 lP7DW8eVjfmiYmmGwhdYaPMZU7WsotpGLy2SZuXbBYUv7gb09Pn05fJ4OMPEaKdojFCpuTxcs8A4E AXahZoCH3/nhCZpwq2HHlopZllKwU2dsQiAB6sUvpOnznCb1oTPUTEAfqUnZdC3q4MpybGR+wxPuR jr6WGfCQPDKKgZ/ufeb56w==; Original-Received: from [87.69.77.57] (port=1788 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 1oJrzT-0007u1-31; Fri, 05 Aug 2022 03:43:27 -0400 In-Reply-To: <100d08b3-c25b-683f-6def-39052107ab59@yandex.ru> (message from Dmitry Gutov on Fri, 5 Aug 2022 05:03:39 +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:238834 Archived-At: > Date: Fri, 5 Aug 2022 05:03:39 +0300 > Cc: 56682@debbugs.gnu.org, Eli Zaretskii , > monnier@iro.umontreal.ca > From: Dmitry Gutov > > That was about a 1 GB buffer, right? > > Let's take care of buffers with more reasonable sizes first, and then we > can consider extremes. We want to solve all of them. > A separate threshold for syntax-ppss to avoid parsing the whole > buffer might fit the bill. Don't we already have such a threshold? But again, if you are just saying that the current balance between response time and font-lock correctness is sub-optimal, and should be made better by changing the values of the thresholds, that's a different discussion. For that discussion, we'd need a representative enough sample of real-life files with long lines and in as many major modes as possible, to make our balance really close to optimal. I, for one, will welcome more examples of such files, especially if they use major modes we didn't consider until now.