From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bastian Beischer 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:53:47 +0100 Message-ID: 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="UTF-8" X-Trace: blaine.gmane.org 1518040342 14855 195.159.176.226 (7 Feb 2018 21:52:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2018 21:52:22 +0000 (UTC) Cc: 30367@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 07 22:52:17 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 1ejXdQ-00035v-Ft for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 22:52:08 +0100 Original-Received: from localhost ([::1]:34776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejXfS-0005XL-03 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 16:54:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejXfK-0005WE-Fa for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 16:54:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejXfG-0003zi-1P for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 16:54:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53871) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejXfF-0003zY-U0; Wed, 07 Feb 2018 16:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejXfF-0004u9-Iu; Wed, 07 Feb 2018 16:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bastian Beischer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 07 Feb 2018 21:54: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.151804043618843 (code B ref 30367); Wed, 07 Feb 2018 21:54:01 +0000 Original-Received: (at 30367) by debbugs.gnu.org; 7 Feb 2018 21:53:56 +0000 Original-Received: from localhost ([127.0.0.1]:33535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejXfA-0004tq-B2 for submit@debbugs.gnu.org; Wed, 07 Feb 2018 16:53:56 -0500 Original-Received: from mail-yw0-f169.google.com ([209.85.161.169]:39356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejXf8-0004td-Kc for 30367@debbugs.gnu.org; Wed, 07 Feb 2018 16:53:54 -0500 Original-Received: by mail-yw0-f169.google.com with SMTP id v196so1179704ywc.6 for <30367@debbugs.gnu.org>; Wed, 07 Feb 2018 13:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EqqMyjBQnOgI4/EcZINz3coMK3zBMuMhze4oslSzai4=; b=F2vLSWDWTAgFet44ApH6T1RKtnxlWMRkMl23lqJ8lwUsAieWr0HjxRxG70V63Q+5bo byAvpArtHgFeF6/dfTULWh6r1ilcLlyuyGs/m6jV721N1iEuMAJUFl+ls7NdJWp2n76S +b6wzj+Yt/Gm22uWNBT+VnoLN3paG3dUCWxvDYGLcewe+j8PBTEq63q5FB9lDiNFirNF yaYRp5Ytf4k8tkh/VjUAe5RwGhTmej/Fkqt39OXCv7KCrLbpXmIFNFqY+ZpnSvBF1X+m c/B5Pzjavxjo6TVTRTTMy1gKkdPX/E17bED/qX9AADyKr77ug6tNMOWWxFP5bTBSz8xJ 8+2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EqqMyjBQnOgI4/EcZINz3coMK3zBMuMhze4oslSzai4=; b=O7njaDaCLK6dywp3TPibiR7yld8YtGsH7NKzIXKXg2TyDG9bpvLvvcz5+HLznK1RrH Cz5Om+aBBKuZewqSl/1I7a16WvhBB0Y8TApS+SwqIV8p4gVuNYT2W7jNNpk+vcEvww/H c6wvOqzylwZQlnVWQD5NWI7tFtEhO5K5Lq5Y6fnKbzCeRxD5lBwT+buMCh/w1S/BkQYA DDE9OSDLWn8M8snwyGcNb3UpAHsh1t1sOAUgoZXCy5nYb6pqMJmcy/EpvnBs9YnktAUH tV++HufelCckpPs9/PCk+6YgeqVOjhhPdF4jUdtsW1Ax4OGBk7S1KU/0YmeSqKPSYh7z D7ew== X-Gm-Message-State: APf1xPDjUGrBaZj6mw4eekJw8ZCA9qf//4bpkpa7cg9gWawiZpy33Xfn daAMbp6WRrhC7xnfhki6NRfiVtagicCIV6Fim9p7Zg== X-Google-Smtp-Source: AH8x225t60BtK9ph5vAnt0Bjyp4JEkEQwyrOyWHHbVJ0LL7GP8TGIEMpiOyErlJr2jCEUlnc7VWp/8O6f1MSvdjiAFA= X-Received: by 10.37.77.6 with SMTP id a6mr3716145ybb.410.1518040428823; Wed, 07 Feb 2018 13:53:48 -0800 (PST) Original-Received: by 10.129.93.69 with HTTP; Wed, 7 Feb 2018 13:53:47 -0800 (PST) In-Reply-To: <20180207212145.GA3963@ACM> 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:143018 Archived-At: Hello Alan, On Wed, Feb 7, 2018 at 10:21 PM, Alan Mackenzie wrote: > > 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. 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 then search for 'isinsha'. ~/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) 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 :-) > > > > Cheers > > Bastian > > -- > Alan Mackenzie (Nuremberg, Germany). Cheers Bastian