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 23:45:03 +0100 Message-ID: References: <20180207152435.72040.qmail@mail.muc.de> <20180207212145.GA3963@ACM> <20180207222638.GB3963@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1518043463 31705 195.159.176.226 (7 Feb 2018 22:44:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2018 22:44:23 +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 23:44:19 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 1ejYRn-0007UB-Ai for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 23:44:11 +0100 Original-Received: from localhost ([::1]:39585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejYTo-000131-MC for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Feb 2018 17:46:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejYTf-000111-Bf for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 17:46:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejYTa-00076H-Jp for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2018 17:46:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejYTa-00075z-FX; Wed, 07 Feb 2018 17:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejYTa-00066y-5q; Wed, 07 Feb 2018 17:46:02 -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 22:46: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.151804351223433 (code B ref 30367); Wed, 07 Feb 2018 22:46:02 +0000 Original-Received: (at 30367) by debbugs.gnu.org; 7 Feb 2018 22:45:12 +0000 Original-Received: from localhost ([127.0.0.1]:33570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejYSl-00065t-QQ for submit@debbugs.gnu.org; Wed, 07 Feb 2018 17:45:12 -0500 Original-Received: from mail-yw0-f178.google.com ([209.85.161.178]:38731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejYSk-00065g-4t for 30367@debbugs.gnu.org; Wed, 07 Feb 2018 17:45:10 -0500 Original-Received: by mail-yw0-f178.google.com with SMTP id m84so1276757ywd.5 for <30367@debbugs.gnu.org>; Wed, 07 Feb 2018 14:45:10 -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=7zglaXo8/FxK8n+4AT8ASd1CQXyYJ8kcoBvxJSfyZFw=; b=uQMHsuejlYVlu5BaiCWWfTVVNsaoyQg4vBS7eN3UHisS20OZYgpT5KOATyz1Hzsofw snEw9YdnCTV/mHPYC6+w0L1QCg0d7xh7RdPq5AsmB8zMor1qlb9Jid4B4CeIbvYD/M/q EieYchy9nsF2YLiKVW1ZvkUnMdJ60ybDLa2FCoLsz7PpRCl181Lp5hzNKfQsGDyoR8y0 Vv7nrBC2p9U6jJV3W+zbRa12WzexfvmAf2MJFxnggVGVGBaRgwtys0NmQfIJU6AZrGAo pM07NVE48L9PINUuCcVngVUJnQ+pu7270aUkYrFAQQNQquFxXp7FLs6VXLLUOJ1i2ZJa bb8A== 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=7zglaXo8/FxK8n+4AT8ASd1CQXyYJ8kcoBvxJSfyZFw=; b=pnat+2+Uh0B2fhAhtiPAiWODV67CH2ayYNNMBKMlntKywvqNuznGRhvzsX4scuqiiW WGyj3bfMh4aKQ7RSG6SibNHA8jFr2GcyAsUKFHtdZfqNzuFGpNmRy9ovrOSQrjpsn35S bSdJBW7FVEBQ8jysIKviO4JKPA/O3riUl0m3cAumSz5GP2oKQ48HP5dE8KnSABWhVFfe S+U3N9bq1EHknhvJApMpJQ5MadPF8YurhPVbEDToEuEp3mGDaOzoUsQzu1hOINlpGI43 U6DEm00rK14lBhAXijxwtzxUSfjcgSUvu2gE7U8WI5t1M4XBEiQ0Udt/SaF6mT5BpVdo MkjA== X-Gm-Message-State: APf1xPBi0SH7D1SiDSwHPVXNrqwteZb7YZI77Bf5pAnRX4gEu7dn6bPf QWX+AFVaUKjoe4XPZjj0SHqO4CPRA/K5JeTMWX8= X-Google-Smtp-Source: AH8x227g3GK8O0MAI4ma/NSTXI/TQsFlKZ+T8wGbpeb2/Pxx8GHq9capWihFPjHd93vjsqwdJpjeI1/u02HuMd31S34= X-Received: by 10.129.175.76 with SMTP id x12mr4968957ywj.67.1518043504309; Wed, 07 Feb 2018 14:45:04 -0800 (PST) Original-Received: by 10.129.93.69 with HTTP; Wed, 7 Feb 2018 14:45:03 -0800 (PST) In-Reply-To: <20180207222638.GB3963@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:143020 Archived-At: On Wed, Feb 7, 2018 at 11:26 PM, Alan Mackenzie wrote: > 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.) :-) Yes the command you sent works just as well, so the require form is not needed. Thanks! > >> 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! Great, so our results are consistent. > >> ~/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).