From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#30367: 26.0.91; CC-Mode: Major slowdown when isearching big C++ file. Date: Wed, 7 Feb 2018 22:26:38 +0000 Message-ID: <20180207222638.GB3963@ACM> References: <20180207152435.72040.qmail@mail.muc.de> <20180207212145.GA3963@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1518042917 5271 195.159.176.226 (7 Feb 2018 22:35:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2018 22:35:17 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 30367@debbugs.gnu.org To: Bastian Beischer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 07 23:35:13 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 1ejYJ5-0000zd-12 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 23:35:11 +0100 Original-Received: from localhost ([::1]:38680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejYL6-0004Ug-IP for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 17:37:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejYKv-0004T2-7B for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 17:37:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejYKs-00013o-3V for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 17:37:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejYKr-00013f-Vn; Wed, 07 Feb 2018 17:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejYKr-0005ua-N3; Wed, 07 Feb 2018 17:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 07 Feb 2018 22:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30367 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 30367-submit@debbugs.gnu.org id=B30367.151804301722712 (code B ref 30367); Wed, 07 Feb 2018 22:37:01 +0000 Original-Received: (at 30367) by debbugs.gnu.org; 7 Feb 2018 22:36:57 +0000 Original-Received: from localhost ([127.0.0.1]:33566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejYKm-0005uG-UR for submit@debbugs.gnu.org; Wed, 07 Feb 2018 17:36:57 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:36789 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1ejYKk-0005u6-PC for 30367@debbugs.gnu.org; Wed, 07 Feb 2018 17:36:55 -0500 Original-Received: (qmail 10779 invoked by uid 3782); 7 Feb 2018 22:36:53 -0000 Original-Received: from acm.muc.de (p548C753D.dip0.t-ipconnect.de [84.140.117.61]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 07 Feb 2018 23:36:52 +0100 Original-Received: (qmail 10244 invoked by uid 1000); 7 Feb 2018 22:26:38 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:143019 Archived-At: Hello, Bastian. On Wed, Feb 07, 2018 at 22:53:47 +0100, Bastian Beischer wrote: > Hello Alan, > On Wed, Feb 7, 2018 at 10:21 PM, Alan Mackenzie wrote: [ .... ] > > Unfortunately, I cannot reproduce the slowdown in that file, at least, > > not starting from emacs-26.0.91 -Q. I think you've got quite a lot of > > non-default minor modes active, and I've a suspicion that we're seeing > > some interaction between CC Mode and one of these minor modes, or > > possibly some other non-default setting you've got set. > > Would you please try to reproduce the problem with emacs -Q, and if you > > can't, try to pinpoint which one of your settings/minor modes is the one > > which CC Mode is working badly with. > Actually the profile runs I sent were done with 'emacs -Q'. It's just > that I used a different emacs instance to report the bug, which had > the usual modes loaded. Sorry about that. So I can reproduce the > problem from emacs -Q, but I _do_ load the latest cc-mode from it's > standalone repository. The actual command was: > emacs -Q --eval "(add-to-list 'load-path \"~/cc-mode\")" --eval > "(require 'cc-mode)" /path/to/file.C As a matter of interest, you can run emacs -Q -L ~/cc-mode /path/to/file.C , this being less effort to type. (I don't understand why you've got the `require' form in there - maybe you really do need it.) :-) > then search for 'isinsha'. Yes, searching for "isinsha", I see the slowdown. Thanks! I also see c-looking-at-or-maybe-in-bracelist as taking an excessive amount of processing. So I can reproduce it! > ~/cc-mode revision is as follows: > $ cd ~/cc-mode > $ hg summary > parent: 6256:e8b2c6141f97 > Added tag 2018-01-29-mac-m for changeset 9785123a85b4 > branch: default > commit: (clean) > update: (current) Thanks. I actually run the tip of the standalone CC Mode as my default CC Mode anyway, since I'm so often working on it. > emacs version is as in the original report (GNU Emacs 26.0.91 (build > 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2018-02-06, commit > c787a4968273027960a20ced6d63bae0d1ffa87e) > > We'll crack this! > I'm sure :-) Just not tonight. ;-) > Cheers > Bastian -- Alan Mackenzie (Nuremberg, Germany).