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 21:21:45 +0000 Message-ID: <20180207212145.GA3963__47446.3931088851$1518039087$gmane$org@ACM> References: <20180207152435.72040.qmail@mail.muc.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1518039087 25788 195.159.176.226 (7 Feb 2018 21:31:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2018 21:31:27 +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 22:31:22 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 1ejXJ6-0005aT-P5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 22:31:08 +0100 Original-Received: from localhost ([::1]:32887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejXL8-0002yC-B1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 16:33:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejXL1-0002x1-9m for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 16:33:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejXL0-0006Fb-Bi for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 16:33:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejXKw-0006DJ-Mr; Wed, 07 Feb 2018 16:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejXKw-0004PZ-EF; Wed, 07 Feb 2018 16:33:02 -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 21:33:02 +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.151803912416892 (code B ref 30367); Wed, 07 Feb 2018 21:33:02 +0000 Original-Received: (at 30367) by debbugs.gnu.org; 7 Feb 2018 21:32:04 +0000 Original-Received: from localhost ([127.0.0.1]:33512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejXK0-0004ON-6L for submit@debbugs.gnu.org; Wed, 07 Feb 2018 16:32:04 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:49750 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1ejXJy-0004Nx-4m for 30367@debbugs.gnu.org; Wed, 07 Feb 2018 16:32:02 -0500 Original-Received: (qmail 90143 invoked by uid 3782); 7 Feb 2018 21:32:00 -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 22:31:59 +0100 Original-Received: (qmail 9876 invoked by uid 1000); 7 Feb 2018 21:21:45 -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:143016 Archived-At: Hello, Bastian. That was quick work. :-) On Wed, Feb 07, 2018 at 16:27:35 +0100, Bastian Beischer wrote: > Hello Alan, > On Wed, Feb 7, 2018 at 4:24 PM, Alan Mackenzie wrote: > > Hello, Bastian. > > In article you > > wrote: > > > After updating CC-Mode to the latest version in the standalone mercurial > > > repository I noticed that searching large C++ files has become a lot > > > slower than before (factor 20 or so). > > Thanks for taking the trouble to report this bug. > > How large is large? Any chance you could supply me with such a sample > > C++ file that is slow on searching. Then, in case something else > > besides the size is slowing it down, I'll have a "working" file to > > diagnose the bug with. > Sure, but ​I will send you the file off-list, since I don't want it to > become public. > ​ I've got the file you sent me, thanks very much, and I will treat it as confidential. 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. We'll crack this! > ​Cheers > Bastian -- Alan Mackenzie (Nuremberg, Germany).