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#61514: 30.0.50; sadistically long xml line hangs emacs Date: Tue, 21 Feb 2023 12:37:11 +0000 Message-ID: <6abb5de688808f8d363d@heytings.org> References: <87lel0c65v.fsf@everybody.org> <838rgvymcd.fsf@gnu.org> <831qmkwmux.fsf@gnu.org> <83cz64v3v7.fsf@gnu.org> <83r0ujte97.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15633"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mah@everybody.org, 61514@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 21 13:38:19 2023 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 1pURuU-0003rc-RG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Feb 2023 13:38:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pURuI-00086g-IB; Tue, 21 Feb 2023 07:38:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pURuE-0007yX-Ot for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 07:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pURuE-0005N3-3T for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 07:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pURuD-0002Mi-Vd for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 07:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2023 12:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61514 X-GNU-PR-Package: emacs Original-Received: via spool by 61514-submit@debbugs.gnu.org id=B61514.16769830359006 (code B ref 61514); Tue, 21 Feb 2023 12:38:01 +0000 Original-Received: (at 61514) by debbugs.gnu.org; 21 Feb 2023 12:37:15 +0000 Original-Received: from localhost ([127.0.0.1]:54851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pURtT-0002LC-Hj for submit@debbugs.gnu.org; Tue, 21 Feb 2023 07:37:15 -0500 Original-Received: from heytings.org ([95.142.160.155]:38380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pURtR-0002Kx-4L for 61514@debbugs.gnu.org; Tue, 21 Feb 2023 07:37:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1676983031; bh=iMQy3qN6LuApUoqN8UGI/zSutr62ElsAwh082YESm2g=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=tWuiSz45gAiJGG2JE6PijqwyO/X83LegmwJykj1NjRp8/6GpO//zjR+nEbryD6anj s1XgdzBC+AIC9IuWgtWMLpHWqeUfWXCTA1Ec0gBIWijTLSZXiZEwW6AhKCo/s2oorm Edaq9tPYUs/ghawY5nhzKWJBeOH7HIPFqXVqr+SsGqdv0g9eoiOa4gSIGwGcG8xqK7 hGfJVFMgN2rlms75tD/CRgdHvuhYNHySK7JfrWbrrviTOkI9BrI4AQqLWPB423jdaD nxA//GfILq6LCL/7U79Xc7DeHzzrOh3rGY9KOXMhvuViFDRDl//cEaf3YUSO8dcxPo dy5wXu/9sxe/A== In-Reply-To: <83r0ujte97.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256258 Archived-At: > > SGTM, but isn't 1000 a somewhat low value? What if we use half of the > value of long-line-optimizations-region-size instead? > Here are some benchmarks. The time taken by Emacs to open the 4 MB "n_n_..." file with different regexps are: "[^<>\n]\\{1,100\\}?\\<": 0.8 seconds "[^<>\n]\\{1,1000\\}?\\<": 3.4 seconds "[^<>\n]\\{1,10000\\}?\\<": 28.5 seconds "[^<>\n]\\{1,65535\\}?\\<": 162.9 seconds "[^<>\n]+?\\<": 356.6 seconds 65535 is the upper limit for such ranges, it's not possible to use a larger value.