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: Fri, 22 Jul 2022 19:25:47 -0400 Message-ID: References: <837d46mjen.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="20578"; 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 To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 01:27:12 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 1oF236-0005DX-0J for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 01:27:12 +0200 Original-Received: from localhost ([::1]:53434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF233-0004BM-NO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 19:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF22w-0004BA-Kg for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 19:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oF22w-0000yM-CH for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 19:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oF22w-0005mP-5M for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 19:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jul 2022 23:27: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.165853236522146 (code B ref 56682); Fri, 22 Jul 2022 23:27:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 22 Jul 2022 23:26:05 +0000 Original-Received: from localhost ([127.0.0.1]:42739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF221-0005l6-22 for submit@debbugs.gnu.org; Fri, 22 Jul 2022 19:26:05 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF21v-0005kV-NT for 56682@debbugs.gnu.org; Fri, 22 Jul 2022 19:26:03 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4716D4417B1; Fri, 22 Jul 2022 19:25:54 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 72C5B44179B; Fri, 22 Jul 2022 19:25:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1658532348; bh=oKrcVa94ojSgBKGR7iabrEDH1FgmdMe9bhQq5ZheT1U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=d15I6mbP8KZH+eh/JI1rHKFcryfpx5aZvgyxyTcO9rOWneVDCmTXdIRhtjQEYZlg/ A/OGxaL5nSKkWKwkC3FLqiH9pgLIEkYXJN5WRgIhcZ0rVhZKqIrmZsnyVYY3bwN1YH d/PobdCpIMWaXwYhXPvyztFp+oWhum3YbwBkDVtBJ93HICp99/SD2YRcL8grpEN72K q8DBblGQx1uXNwpyE2bAhZ6AoQlj164j6Jv8dR+NarBKZx/N/HzWnkAeI9YoZb/uee 3q9M3eJZpfidQM3tiHui+mhvHjUmlnYY9VRF4nNZAKzK3H8Lm8Oei4ZI55Gd8vl9eA KaxYyhg4Uwqjg== Original-Received: from pastel (unknown [45.72.195.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3C94412019A; Fri, 22 Jul 2022 19:25:48 -0400 (EDT) In-Reply-To: <837d46mjen.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Jul 2022 21:04:48 +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:237656 Archived-At: Before using a blunt tool like the forced-narrowing now in `feature/long-lines-and-font-locking`, I think we should try and figure out *why* the recipe below is so slow. For example, the behavior surprises me because I can't see why `M-x` should cause any font-locking at all in the `long-line.xml` file. [ Other side note: IIRC `nxml-mode` uses font-lock and syntax-propertize in somewhat unusual ways (it started doing all of that work "by hand" in its own way, and only later was it coerced to try and play along with that "standard" infrastructure), so the problem may be specific to nxml-mode. ] Stefan