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, 12 Aug 2022 20:56:30 +0300 Message-ID: <83y1vtmjld.fsf@gnu.org> References: <83les71ilg.fsf@gnu.org> <06c5560d-3009-e5a5-3d33-fe5d2ec32d6b@yandex.ru> <74ddc877f17a06d8f120@heytings.org> <100d08b3-c25b-683f-6def-39052107ab59@yandex.ru> <83h72r16g1.fsf@gnu.org> <640c2e07-98e1-96d6-bb02-19f5f03f637f@yandex.ru> <834jyq29o1.fsf@gnu.org> <92da07bd028e3ede61a6@heytings.org> <47894c57-dd8b-5778-240a-3fa6540e4d37@yandex.ru> <92da07bd02941d5537e9@heytings.org> <5308e3b5-a160-17d7-77ee-b1d00acfa20d@yandex.ru> <92da07bd02a6cc861e1a@heytings.org> <837d3lzv8n.fsf@gnu.org> <2c8d6755-cfe2-6559-3fde-3fa30ffb411e@yandex.ru> <83mtcgy44k.fsf@gnu.org> <83k07jx5jn.fsf@gnu.org> <866e510d-a060-7daa-d002-97861d056fa7@yandex.ru> <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="526"; 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 12 19:58:24 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 1oMYvP-000AYX-Rh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Aug 2022 19:58:24 +0200 Original-Received: from localhost ([::1]:39666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMYvO-0006Ph-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Aug 2022 13:58:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMYu7-0005aA-5Z for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2022 13:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMYu6-0004b6-Sz for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2022 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMYu6-0001wO-Iq for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2022 13:57: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, 12 Aug 2022 17:57: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.16603270037420 (code B ref 56682); Fri, 12 Aug 2022 17:57:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 12 Aug 2022 17:56:43 +0000 Original-Received: from localhost ([127.0.0.1]:58884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMYtm-0001vc-WD for submit@debbugs.gnu.org; Fri, 12 Aug 2022 13:56:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMYtk-0001vP-Vt for 56682@debbugs.gnu.org; Fri, 12 Aug 2022 13:56:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMYtf-0004V9-AI; Fri, 12 Aug 2022 13:56:35 -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=r+saLRm2xv5KMQtH1bAknQRJz0lz8Z0XfbhXOHxAsBQ=; b=c49nUR6l8FaD XwkI+yT298bQgljI2MfVOda/Yugytd/PHSDKf3zuzVVOp32kbQ5mjmvG18znNMKw2U4rUQLGG0iXp Ta6JVkYDgQ+u6DUpD28qobiG33cBaxpYTtlgjD+9DiBQmkXFtfHS+8XsI9QRcIuUz6V2ugb42AwX/ cXFs2dHhZbv/jtzWQB6RD0wBFi4daYLhvCQJJ4xM4hE1GqlqysVadnPamN956lc3U30uoUfAdLBVv oHERiXaE9KWPreDwPNuQFq6SDkpX1VlF5cCXjh1/96m+ZdDwlpyMSHNFwuD5RvmWQ3agn9y/CQ3n/ mIA0UMMD3h/iXZtSH8XGVw==; Original-Received: from [87.69.77.57] (port=4993 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 1oMYte-0002g9-GB; Fri, 12 Aug 2022 13:56:35 -0400 In-Reply-To: <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> (message from Dmitry Gutov on Fri, 12 Aug 2022 19:35:57 +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:239453 Archived-At: > From: Dmitry Gutov > Cc: Eli Zaretskii , > "56682@debbugs.gnu.org" <56682@debbugs.gnu.org>, > "monnier@iro.umontreal.ca" > Date: Fri, 12 Aug 2022 19:35:57 +0300 > > I have eliminated two performance problems frim js-json-mode that are uncharacteristic for font-lock in > general. One used a pathological matcher (simply removed), and another uses the "frameworks" facility > which simply always rescans the full buffer from the beginning. That one can/should be fixed later, but I have > disabled it for JSON (where it doesn't make sense anyway). > > You should know that the rest of js-mode's font-lock keywords are still there. I experimented with leaving just > the bare minimum needed for JSON, but the effect was very minimal (like 20% improvement). I didn't yet have time to try the branch, but what you say begs a question: does the branch attempt to solve the problems of JSON files only, or does it attempt to solve a more general problem?