From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Fri, 22 Jul 2022 10:16:52 +0000 Message-ID: <174616cd5c33bfc14b1f@heytings.org> References: <837d46mjen.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24013"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii To: 56682@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 22 12:17:27 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 1oEpip-00061b-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 12:17:27 +0200 Original-Received: from localhost ([::1]:34188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEpin-0001rj-TX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 06:17:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEpiQ-0001rL-HP for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 06:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEpiQ-0002OM-8d for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 06:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEpiQ-00048A-1G for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 06:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jul 2022 10:17: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.165848501915867 (code B ref 56682); Fri, 22 Jul 2022 10:17:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 22 Jul 2022 10:16:59 +0000 Original-Received: from localhost ([127.0.0.1]:40176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEpiN-00047q-3s for submit@debbugs.gnu.org; Fri, 22 Jul 2022 06:16:59 -0400 Original-Received: from heytings.org ([95.142.160.155]:47822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEpiH-00047d-Pb for 56682@debbugs.gnu.org; Fri, 22 Jul 2022 06:16:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1658485012; bh=q1xUXXaXAK/5FXP5IP420QrevP1ECXQsXWd2JJ7k6Pk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=HvgrJXkOD7iqHsxv7G3lBjBfqMpZnxmWMsgkJKrw9gbKOAv3523Rm2mKoaftwhljN nBl4k1C7hl1YWyFqpWq8jTEswhJZKo/slXikyj7x7LoxOfumNHhPDRPueOINgB5Gfv GYRNpjYC8T4apHnNvqkfVmNOa4nN/DSBSx3ITLSkJFDWiL1uf+PsI008Kq0EVUJOaS JIbh9hGjANcXCgLorqRWlmXJ1rPADGn5u6O9WOKSP0BKcKUEyW/w9quZsZcdFKYRr0 2YG3KD8w37aY47yqCugkf5KKH5uWa4ZbRl3RqKMDOVzyJeI87D0XNzt5A4S2cRrqQe PGhdZAD/FHyIA== In-Reply-To: <837d46mjen.fsf@gnu.org> 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:237607 Archived-At: 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.