From unknown Sun Aug 17 23:33:38 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#989 <989@debbugs.gnu.org> To: bug#989 <989@debbugs.gnu.org> Subject: Status: 23.0.60; High number of different comment lines in a verilog file makes Emacs' verilog-mode unusable slow Reply-To: bug#989 <989@debbugs.gnu.org> Date: Mon, 18 Aug 2025 06:33:38 +0000 retitle 989 23.0.60; High number of different comment lines in a verilog fi= le makes Emacs' verilog-mode unusable slow reassign 989 emacs submitter 989 Mathias Megyei severity 989 normal thanks From Mathias.Megyei@gracesemi.at Wed Sep 17 01:54:44 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 17 Sep 2008 08:54:44 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8H8sd21032214 for ; Wed, 17 Sep 2008 01:54:41 -0700 Received: from mail.gnu.org ([199.232.76.166]:59119 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KfsmB-0002Bi-C2 for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 04:52:43 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kfsnx-0001Fw-AD for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 04:54:38 -0400 Received: from mail.gracesemi.at ([213.33.64.235]:1025) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kfsnu-0001Dy-8g for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 04:54:30 -0400 Received: from [192.168.100.101] (192.168.100.101) by vihwindc01.eu-gracesemi.local (10.11.15.2) with Microsoft SMTP Server (TLS) id 8.1.311.1; Wed, 17 Sep 2008 10:54:49 +0200 Message-ID: <48D0C5C1.1030902@gracesemi.at> Date: Wed, 17 Sep 2008 10:54:25 +0200 From: Mathias Megyei User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: Subject: 23.0.60; High number of different comment lines in a verilog file makes Emacs' verilog-mode unusable slow Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-Product-Ver: SMEX-8.0.0.1181-5.500.1027-16162.002 X-TM-AS-Result: No-1.611100-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I have a verilog file with 593 lines. It contains 129 lines that start with comment. (There are more comments in "code" lines but that doesn't matter.) After emacs -Q C-x C-f C-end it takes several minutes until Emacs displays the last page. I investigated what causes this slowdown and I eventually found that the number of different comment lines is the reason for that. If I replace only the half of the comment lines by the same comment Emacs is much faster. If I replace all 129 comment lines by the same (random) comment Emacs is as fast as I would like it to be. I opened the same file in Emacs 22.2 (verilog-mode-version 404) and didn't observed such slowness. Best Regards, Mathias If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /tools/emacs/23.0.60/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-09-16 on VIHLXCOMP02 Windowing system distributor `The X.Org Foundation', version 11.0.60801000 configured using `configure '--prefix' '/tools/emacs/23.0.60' '--enable-font-backend' '--with-xft=yes' '--with-dbus=yes'' Important settings: value of $LC_ALL: C value of $LC_COLLATE: C value of $LC_CTYPE: de_DE@euro value of $LC_MESSAGES: en_US value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Verilog Minor modes in effect: iswitchb-mode: t show-paren-mode: t cua-mode: t display-time-mode: t shell-dirtrack-mode: t mouse-sel-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: / ! C-M-% { } SPC s t r i n g SPC a k l f d l ! C-x C-s C-M-% # ! C-M-% _ ! C-x C-s C-M-% [ ! C-x C-s C-M-% C-e SPC s d k l f d o f d SPC _ SPC s d k l d f k l f d SPC - SPC j k k k ` SPC l l d s v l v SPC # SPC \ k d f j k d f SPC | d f k j d f k l : SPC k j s d j k { s d d s j k : j d f k } SPC d s j [ s d j d SPC ] s d j k d k C-M-% ! C-x C-s C-M-% ! C-x C-s M-x r e p o r Recent messages: Undo! Mark set [2 times] match-substitute-replacement: Invalid use of `\' in replacement text Mark set Replaced 70 occurrences Wrote /home/megyei/otfc.v Undo! Mark set [2 times] Replaced 129 occurrences Wrote /home/megyei/otfc.v From rgm@gnu.org Wed Sep 17 10:01:07 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.5 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 17 Sep 2008 17:01:07 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8HH10Wb032740 for ; Wed, 17 Sep 2008 10:01:01 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kg0Mo-0002UL-IV; Wed, 17 Sep 2008 12:59:02 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18641.14166.473583.97180@fencepost.gnu.org> Date: Wed, 17 Sep 2008 12:59:02 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: ]uu=I-G?}UV]%gg1X;a4w]NBj4oVY,BhDJ\1~rkx/v}slz=+ge4ye`$)g2O?'L}$-,`Srw X-Debbugs-No-Ack: yes reassign 989 emacs,verilog reassign 990 spam From Mathias.Megyei@gracesemi.at Fri Oct 24 05:44:13 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.5 required=4.0 tests=BAYES_20,HTML_MESSAGE autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 989) by emacsbugs.donarmstrong.com; 24 Oct 2008 12:44:13 +0000 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9OCi91G027150 for <989@emacsbugs.donarmstrong.com>; Fri, 24 Oct 2008 05:44:11 -0700 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 8D42C1C003C7 for <989@emacsbugs.donarmstrong.com>; Fri, 24 Oct 2008 14:44:08 +0200 (CEST) Received: from [192.168.100.64] (host-88-217-141-230.customer.m-online.net [88.217.141.230]) by mail.mnet-online.de (Postfix) with ESMTP id 5B9D19001D for <989@emacsbugs.donarmstrong.com>; Fri, 24 Oct 2008 14:44:08 +0200 (CEST) Subject: Please close From: Mathias Megyei To: 989@debbugs.gnu.org Content-Type: multipart/alternative; boundary="=-0/i9SHiBh0vgUwm0zCxN" Organization: Grace Semiconductor Date: Fri, 24 Oct 2008 14:44:47 +0200 Message-Id: <1224852287.7323.19.camel@ubuntu804desktop.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 --=-0/i9SHiBh0vgUwm0zCxN Content-Type: text/plain Content-Transfer-Encoding: 7bit Withe a recent build of emacs I do not see the slowdown any more. Please close this bug report. Best Regards, Mathias --=-0/i9SHiBh0vgUwm0zCxN Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Withe a recent build of emacs I do not see the slowdown any more.
Please close this bug report.

Best Regards,

Mathias --=-0/i9SHiBh0vgUwm0zCxN-- From rgm@gnu.org Fri Oct 24 10:55:34 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.2 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, MURPHY_DRUGS_REL8,NOSUBJECT,RCVD_IN_DNSWL_MED,UNRESOLVED_TEMPLATE, X_DEBBUGS_NO_ACK autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 24 Oct 2008 17:55:34 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9OHtVs8008255 for ; Fri, 24 Oct 2008 10:55:32 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KtQq6-00007t-Ut; Fri, 24 Oct 2008 13:52:46 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18690.2926.878911.816898@fencepost.gnu.org> Date: Fri, 24 Oct 2008 13:52:46 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: -1hDN3#MKVLq9`6a[BBJWV&1}^ei,B.ev.n+5"dky.z_BI'978}L%N_Ld:Rf|E?#&[]7TK X-Debbugs-No-Ack: yes close 989 tags 1239 patch From unknown Sun Aug 17 23:33:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 22 Nov 2008 15:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator