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, 22 Jul 2022 17:11:52 +0300 Message-ID: <83v8rpjkyf.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40870"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 22 16:14:38 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 1oEtQL-000AQV-Si for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 16:14:38 +0200 Original-Received: from localhost ([::1]:51012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEtQK-0002tJ-R1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 10:14:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEtOp-0001m0-Im for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 10:13:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEtOo-0007eh-7t for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 10:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEtOo-0005Az-2F for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 10:13: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, 22 Jul 2022 14:13: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.165849912819768 (code B ref 56682); Fri, 22 Jul 2022 14:13:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 22 Jul 2022 14:12:08 +0000 Original-Received: from localhost ([127.0.0.1]:42081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEtNv-00058m-PX for submit@debbugs.gnu.org; Fri, 22 Jul 2022 10:12:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEtNr-00058A-Ap for 56682@debbugs.gnu.org; Fri, 22 Jul 2022 10:12:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEtNm-0007TO-2c; Fri, 22 Jul 2022 10:11:58 -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=/ozBrc1yDiOQycaERol6zC038cC7+a9Y+SUXUEiWqa0=; b=OFCJ0wzY6P1h Vnoh+tmuXDh/QlLTTPfhMOpj/jocncmf40YjgK7+PA0SkJujQB6N8mT6iAJNswDFeetuRgE/pt/s1 hIR/tNLChgYtWi0SN108xsBs1df/HJHdUVcY9nlTLrPOiAG8cLbm/GapL3zEPwAbvm+iyQ9Wc2erF MkvtjKxWfEXE5Kim7qkTq6c26W2sKyQljjCSbgAfdOAoCWFeraYLZ1JZaeYJfxS2Qk80qjo6yWI74 e4+RVlGqKGpVqnghv2GATwo47oRtALg8A1M5V91nk9jzPPsznx5nUHfdruws2f0ZlUAtq7ZtGr+oi 06MDxgvMhl6/OO4SS/voHA==; Original-Received: from [87.69.77.57] (port=1748 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 1oEtNl-0002cT-IW; Fri, 22 Jul 2022 10:11:57 -0400 In-Reply-To: <174616cd5c33bfc14b1f@heytings.org> (message from Gregory Heytings on Fri, 22 Jul 2022 10:16:52 +0000) 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:237628 Archived-At: > Date: Fri, 22 Jul 2022 10:16:52 +0000 > From: Gregory Heytings > cc: Eli Zaretskii > > > The first step of the font locking related improvements was easier than I > thought. > > Two following commands: > > 1. C-x C-f dictionary.json RET y > > 2. C-e > > on my laptop, with Emacs from master from a week ago, take respectively > 150 seconds and 40 seconds. With the improvements on master, 1 is > instantaneous but 2 still takes about 5 seconds. Now, with the changes in > the feature/long-lines-and-font-locking branch, both are instantaneous. > The price of that speedup is that some portions of the buffer will be > mis-highlighted, which is unavoidable. Thanks. This is indeed the immediate idea for that aspect, but I wonder what would developers of some major modes which widen the buffer say about this. Some of them were very much against such restrictions in the past.