From unknown Fri Aug 15 12:54:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16786 <16786@debbugs.gnu.org> To: bug#16786 <16786@debbugs.gnu.org> Subject: Status: 24.2; PostScript file with long lines locks up UI Reply-To: bug#16786 <16786@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:54:15 +0000 retitle 16786 24.2; PostScript file with long lines locks up UI reassign 16786 emacs submitter 16786 Andreas Gustafsson severity 16786 normal tag 16786 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 19:29:11 2014 Received: (at submit) by debbugs.gnu.org; 18 Feb 2014 00:29:11 +0000 Received: from localhost ([127.0.0.1]:57240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFYYf-0006lf-Lm for submit@debbugs.gnu.org; Mon, 17 Feb 2014 19:29:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39289) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFVpW-00022V-1e for submit@debbugs.gnu.org; Mon, 17 Feb 2014 16:34:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFVpM-0006JT-1o for submit@debbugs.gnu.org; Mon, 17 Feb 2014 16:34:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFVpL-0006JO-UM for submit@debbugs.gnu.org; Mon, 17 Feb 2014 16:34:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFVpH-000678-FY for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 16:34:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFVpD-0006I4-3C for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 16:34:07 -0500 Received: from gunvor.araneus.fi ([46.246.126.150]:52881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFVpC-0006Go-Ow for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2014 16:34:03 -0500 Received: from guava.gson.org (unknown [10.0.1.240]) by gunvor.araneus.fi (Postfix) with ESMTP id F1006145686; Mon, 17 Feb 2014 21:34:33 +0000 (UTC) Received: by guava.gson.org (Postfix, from userid 101) id 119DA75E36; Mon, 17 Feb 2014 23:34:00 +0200 (EET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21250.32840.43915.833076@guava.gson.org> Date: Mon, 17 Feb 2014 23:34:00 +0200 From: Andreas Gustafsson To: bug-gnu-emacs@gnu.org Subject: 24.2; PostScript file with long lines locks up UI X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 17 Feb 2014 19:29:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi, I have a PostScript source file containing some embedded font data in the form of a single line about 100,000 characters long. When I open this file in emacs, it stops responding to keystrokes (including control-G) for several minutes, consuming 100% CPU. I see this behavior in 22.2.1, 23.4.1, and 24.2.1, but not in 21.4.1. The problem can be reproduced by evaluating the following elisp expression: (progn (switch-to-buffer "test") (insert (make-string 100000 97)) (ps-mode) ) -- Andreas Gustafsson, gson@gson.org In GNU Emacs 24.2.1 (x86_64--netbsd) of 2012-10-12 on pomegranate.tastylime.net Configured using: `configure '--srcdir=/scratch/editors/emacs24-nox11/work/emacs-24.2' '--localstatedir=/var' '--without-dbus' '--without-m17n-flt' '--without-otf' '--without-rsvg' '--without-x' '--without-xft' '--without-gif' '--without-jpeg' '--without-png' '--without-tiff' '--without-xpm' '--prefix=/usr/pkg' '--build=x86_64--netbsd' '--host=x86_64--netbsd' '--infodir=/usr/pkg/info' '--mandir=/usr/pkg/man' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'CC=gcc' 'CFLAGS=-O2 -I/usr/include' 'LDFLAGS=-L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib' 'LIBS=' 'CPPFLAGS=-DTERMINFO -I/usr/include'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ ? 1 ; 2 c ESC x r e p o r TAB RET Recent messages: ("emacs") Customizing... Done. For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr warnings emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date guess-offset cc-vars cc-defs regexp-opt ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 19:55:45 2014 Received: (at 16786) by debbugs.gnu.org; 18 Feb 2014 00:55:46 +0000 Received: from localhost ([127.0.0.1]:57278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFYyP-0007TT-Ik for submit@debbugs.gnu.org; Mon, 17 Feb 2014 19:55:45 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:43968 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFYyO-0007TM-4I for 16786@debbugs.gnu.org; Mon, 17 Feb 2014 19:55:44 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WFYyM-0006iD-NJ; Mon, 17 Feb 2014 19:55:42 -0500 From: Glenn Morris To: Andreas Gustafsson Subject: Re: bug#16786: 24.2; PostScript file with long lines locks up UI References: <21250.32840.43915.833076@guava.gson.org> X-Spook: advisors ARPA interception JUWTF anarchy blackjack Becker X-Ran: [n`(fBk:TC@7qBZ!)y')@]1L,d:5|O!n@rk4G7i>S@~y,Uy6.`&%e%~EFA;BdR;xqCOCce X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 17 Feb 2014 19:55:42 -0500 In-Reply-To: <21250.32840.43915.833076@guava.gson.org> (Andreas Gustafsson's message of "Mon, 17 Feb 2014 23:34:00 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 16786 Cc: 16786@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Andreas Gustafsson wrote: > I have a PostScript source file containing some embedded font data > in the form of a single line about 100,000 characters long. I'm afraid this is a known problem. Emacs does not do well with long lines, and absolutely not with lines that long. See http://debbugs.gnu.org/3219 and related reports. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 19:55:58 2014 Received: (at control) by debbugs.gnu.org; 18 Feb 2014 00:55:58 +0000 Received: from localhost ([127.0.0.1]:57281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFYyb-0007Tu-V8 for submit@debbugs.gnu.org; Mon, 17 Feb 2014 19:55:58 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:43970 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFYya-0007Tn-Gm for control@debbugs.gnu.org; Mon, 17 Feb 2014 19:55:56 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WFYya-0006lK-9g for control@debbugs.gnu.org; Mon, 17 Feb 2014 19:55:56 -0500 Date: Mon, 17 Feb 2014 19:55:56 -0500 Message-Id: Subject: control message for bug 16786 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) merge 3219 16786 From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 21:16:03 2014 Received: (at 16786) by debbugs.gnu.org; 18 Feb 2014 02:16:03 +0000 Received: from localhost ([127.0.0.1]:57324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFaE6-0002My-Qb for submit@debbugs.gnu.org; Mon, 17 Feb 2014 21:16:03 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:42466) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFaE5-0002MH-0d for 16786@debbugs.gnu.org; Mon, 17 Feb 2014 21:16:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFLd/lO/2dsb2JhbABEuzWDWRdzgh8BBVYjEAsOJhIUGA0kiCTBLZEKA4hhnBmBXoMV X-IPAS-Result: Av8EABK/CFFLd/lO/2dsb2JhbABEuzWDWRdzgh8BBVYjEAsOJhIUGA0kiCTBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="47913032" Received: from 75-119-249-78.dsl.teksavvy.com (HELO pastel.home) ([75.119.249.78]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Feb 2014 21:15:55 -0500 Received: by pastel.home (Postfix, from userid 20848) id E415661186; Mon, 17 Feb 2014 21:15:54 -0500 (EST) From: Stefan Monnier To: Andreas Gustafsson Subject: Re: bug#16786: 24.2; PostScript file with long lines locks up UI Message-ID: References: <21250.32840.43915.833076@guava.gson.org> Date: Mon, 17 Feb 2014 21:15:54 -0500 In-Reply-To: <21250.32840.43915.833076@guava.gson.org> (Andreas Gustafsson's message of "Mon, 17 Feb 2014 23:34:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16786 Cc: 16786@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > (progn > (switch-to-buffer "test") > (insert (make-string 100000 97)) > (ps-mode) > ) For this test, the main bottleneck seems to be the ("([^()\n%]*\\|[^()\n]*)" . font-lock-warning-face) rule in ps-mode-font-lock-keywords-1. The problem is the second half of the regexp, which will take O(N) time to fail to match at a particular position and which will try matching at every buffer position, for a total of O(N^2). This can be fixed by anchoring the search, e.g. with the patch below. Of course, a small variation of the above test leads to other bottlenecks. Stefan === modified file 'lisp/progmodes/ps-mode.el' --- lisp/progmodes/ps-mode.el 2014-01-08 18:28:43 +0000 +++ lisp/progmodes/ps-mode.el 2014-02-18 02:10:59 +0000 @@ -220,7 +220,8 @@ (ps-mode-match-string-or-comment (1 font-lock-comment-face nil t) (2 font-lock-string-face nil t)) - ("([^()\n%]*\\|[^()\n]*)" . font-lock-warning-face) + ("\\(([^()\n%]*\\)\\|\\(?:^\\|[()]\\)\\(?1:[^()\n]*)\\)" + (1 font-lock-warning-face)) ("[\200-\377]+" (0 font-lock-warning-face prepend nil))) "Subdued level highlighting for PostScript mode.") From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 02:32:35 2014 Received: (at control) by debbugs.gnu.org; 18 Feb 2014 07:32:36 +0000 Received: from localhost ([127.0.0.1]:57477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFfAR-0003ih-B6 for submit@debbugs.gnu.org; Tue, 18 Feb 2014 02:32:35 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:50395 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFfAP-0003iX-4A for control@debbugs.gnu.org; Tue, 18 Feb 2014 02:32:33 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WFfAO-00021i-HV for control@debbugs.gnu.org; Tue, 18 Feb 2014 02:32:32 -0500 Date: Tue, 18 Feb 2014 02:32:32 -0500 Message-Id: Subject: control message for bug 16786 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) unmerge 16786 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 18:11:58 2020 Received: (at control) by debbugs.gnu.org; 12 Aug 2020 22:11:58 +0000 Received: from localhost ([127.0.0.1]:45767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5yyU-0004aj-1P for submit@debbugs.gnu.org; Wed, 12 Aug 2020 18:11:58 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]:32791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5yyR-0004aR-T5 for control@debbugs.gnu.org; Wed, 12 Aug 2020 18:11:57 -0400 Received: by mail-yb1-f173.google.com with SMTP id p191so2224224ybg.0 for ; Wed, 12 Aug 2020 15:11:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=8bnrIxTVJK8/pnvlU2xhF3bUF1Wj0joz0TCLyOubMDY=; b=WwxhRwQ7/ZI5seJgC6GGEJ4daLv9iBfa4jHhwXx9rSsqcAqpdM97Zc6H3PInlWgI8i AIz8cCte7qPjXuDotDZmyU/lfXm0FQK93zNbp0ORWXgGtI7/4QRgCaUrfMsNeFRy++pD hnUfkkTNPVsefYmMvLfeV9EQctfoNE2iqKRvGhzZgWOWb4R3he7dOvPwNrjW7aywnkCf yucuZZSzuyEdInGuWw48aF5SO8kRDbRnWig+YuecWsJ1kM51yAQP8AQ+JHZoK2kn6rLD CXfNyuBlTk3IBGSNe36GZv91MZhXxLkU5SeK38QIj9pY1yfhSanqew+UAI0cOL4q2xvR BAhg== X-Gm-Message-State: AOAM533dyylKqo9s6hxjbjS8JmComA+BeWdIsJJ8rmdOWLqAye854S5G vs6tJstWUQrCbKWdP52mKtS1f7FnlbahGHoTXuUfkoAYTKc= X-Google-Smtp-Source: ABdhPJy/40y/VcS3PiQzlJt7XYt2xa6cJWVP9V9SNfcrpT9Mru6YpwCwROdGFliUwwDiuQXmggCiBBbjDJBl59nEMFY= X-Received: by 2002:a25:7007:: with SMTP id l7mr2212802ybc.85.1597270310321; Wed, 12 Aug 2020 15:11:50 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 12 Aug 2020 15:11:49 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Wed, 12 Aug 2020 15:11:49 -0700 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 16786 + patch thanks Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.173 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.173 listed in wl.mailspike.net] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) tags 16786 + patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 06:38:27 2020 Received: (at 16786) by debbugs.gnu.org; 13 Aug 2020 10:38:27 +0000 Received: from localhost ([127.0.0.1]:47072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Act-0001TU-Cu for submit@debbugs.gnu.org; Thu, 13 Aug 2020 06:38:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Acr-0001TD-Li for 16786@debbugs.gnu.org; Thu, 13 Aug 2020 06:38:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GHkrux3dj83P7UAzlV3ngCaQDMIG8uhoaWdiXkk5Haw=; b=sgieMBIlXRK4bx/CHYu4T1wVr4 ypWRth9WRSap1gHI9T5ZS+NFgGsmcLch96BdPoxcQ2kxKjtNh992KO9E/1jtDNViz5T5EdO+k05do X2Jv+5P7VOc8ZE0Jn/X7zJ4XAVr+i7XD66LRmd87Nq0woraYugBJQKMJ6SKT5sM53dx4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6Ace-00055d-VZ; Thu, 13 Aug 2020 12:38:18 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#16786: 24.2; PostScript file with long lines locks up UI References: <21250.32840.43915.833076@guava.gson.org> Date: Thu, 13 Aug 2020 12:38:11 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 17 Feb 2014 21:15:54 -0500") Message-ID: <871rkag7ak.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> (progn >> (switch-to-buffer "test") >> (insert (make-string 100000 97)) >> (ps-mode) >> ) > > For this test, the main bottleneck seems to be the > > ("([^()\n%]*\\|[^()\n]*)" . font-lock-warning-fa [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16786 Cc: 16786@debbugs.gnu.org, Andreas Gustafsson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: >> (progn >> (switch-to-buffer "test") >> (insert (make-string 100000 97)) >> (ps-mode) >> ) > > For this test, the main bottleneck seems to be the > > ("([^()\n%]*\\|[^()\n]*)" . font-lock-warning-face) [...] > This can be fixed by anchoring the search, e.g. with the patch below. > Of course, a small variation of the above test leads to > other bottlenecks. The patch no longer applies... but on the other hand, the test case doesn't seem to be a problem any more -- everything seems to be fine in that area in Emacs 28. So I'm going to go ahead and close this bug report. If the problem still exists, please respond to this email and we'll reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 06:38:33 2020 Received: (at control) by debbugs.gnu.org; 13 Aug 2020 10:38:33 +0000 Received: from localhost ([127.0.0.1]:47075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Acz-0001Tm-K3 for submit@debbugs.gnu.org; Thu, 13 Aug 2020 06:38:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Acx-0001TS-UI for control@debbugs.gnu.org; Thu, 13 Aug 2020 06:38:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CxxGexmF24evDyClvzgT8ugjmWGH+4v6eEYFAKT03lM=; b=hTQ6lt2ZwXuIf4L1fwxwtUbJ20 HfiHx/Y7pnyz1+LqUq4WbSufm5zXY/FD64kIY9JTEEKgk6od2cvXhpG8JUvHdq062fAXyFZuCRhzF taSfQvCDuYtnMc4JKAs0xdLaL/FPkg9fqfZJyUt30pn6geY7jwyvt7tqfTHkcWYG4UB4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6Acq-00055n-4g for control@debbugs.gnu.org; Thu, 13 Aug 2020 12:38:26 +0200 Date: Thu, 13 Aug 2020 12:38:22 +0200 Message-Id: <87zh6yespt.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16786 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 16786 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 16786 quit From unknown Fri Aug 15 12:54:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Sep 2020 11:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator