From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33887: 26.1; Emacs hangs for several seconds when going to the end of an XML file in nXML mode Date: Thu, 27 Dec 2018 18:43:14 +0200 Message-ID: <83ftui7wf1.fsf@gnu.org> References: <87ftujuvkd.fsf@zira.vinc17.org> <83imzf6jr4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1545928925 15342 195.159.176.226 (27 Dec 2018 16:42:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2018 16:42:05 +0000 (UTC) Cc: vincent@vinc17.net, 33887@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 17:42:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcYjR-0003rM-5w for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 17:42:01 +0100 Original-Received: from localhost ([127.0.0.1]:54017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcYlX-0001RV-Vd for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 11:44:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcYlR-0001RO-R9 for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 11:44:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcYlO-0002Yl-IT for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 11:44:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcYlO-0002Yg-Dq for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 11:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gcYlO-00051d-Ac for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 11:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Dec 2018 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33887 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33887-submit@debbugs.gnu.org id=B33887.154592900619263 (code B ref 33887); Thu, 27 Dec 2018 16:44:02 +0000 Original-Received: (at 33887) by debbugs.gnu.org; 27 Dec 2018 16:43:26 +0000 Original-Received: from localhost ([127.0.0.1]:39487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcYkn-00050d-MU for submit@debbugs.gnu.org; Thu, 27 Dec 2018 11:43:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcYkm-00050Q-UQ for 33887@debbugs.gnu.org; Thu, 27 Dec 2018 11:43:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcYke-0001ng-67 for 33887@debbugs.gnu.org; Thu, 27 Dec 2018 11:43:19 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcYkc-0001nS-Va; Thu, 27 Dec 2018 11:43:15 -0500 Original-Received: from [176.228.60.248] (port=2118 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gcYkc-0005B8-J3; Thu, 27 Dec 2018 11:43:14 -0500 In-reply-to: (message from Stefan Monnier on Thu, 27 Dec 2018 11:39:06 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153912 Archived-At: > From: Stefan Monnier > Cc: Vincent Lefevre , 33887@debbugs.gnu.org > Date: Thu, 27 Dec 2018 11:39:06 -0500 > > > The profile (see below) blames syntax-ppss called by > > sgml-syntax-propertize, so I suspect commit 0055190, which added > > sgml-syntax-propertize-inside to sgml-syntax-propertize. > > Sounds right, but I'm not sure what to do about this. > I don't wonder why so much time is passed on syntax-ppss, which is > generally expected to be relatively fast. Why was sgml-syntax-propertize-inside added? Is its effect an absolute must, or merely a nice-to-have feature? If the latter, perhaps a defcustom that could disable that call will be an okay solution, at least as a stopgap?