all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Bastian Beischer <bastian.beischer@gmail.com>
Cc: 30367@debbugs.gnu.org
Subject: bug#30367: 26.0.91; CC-Mode: Major slowdown when isearching big C++ file.
Date: Wed, 7 Feb 2018 22:26:38 +0000	[thread overview]
Message-ID: <20180207222638.GB3963@ACM> (raw)
In-Reply-To: <CAK9AuB-N+OYP7=Vh3y4S+=7JBsEvUtZzRLzefnbSdiDX++kjtg@mail.gmail.com>

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 <acm@muc.de> 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).





  reply	other threads:[~2018-02-07 22:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-06 10:34 bug#30367: 26.0.91; CC-Mode: Major slowdown when isearching big C++ file Bastian Beischer
2018-02-06 10:40 ` Bastian Beischer
     [not found] ` <mailman.8662.1517913372.27995.bug-gnu-emacs@gnu.org>
2018-02-07 15:24   ` Alan Mackenzie
     [not found]   ` <20180207152435.72040.qmail@mail.muc.de>
2018-02-07 15:27     ` Bastian Beischer
2018-02-07 21:21       ` Alan Mackenzie
     [not found]       ` <20180207212145.GA3963@ACM>
2018-02-07 21:53         ` Bastian Beischer
2018-02-07 22:26           ` Alan Mackenzie [this message]
2018-02-07 22:45             ` Bastian Beischer
2018-02-08 17:25               ` Alan Mackenzie
     [not found]               ` <20180208172558.GA4335@ACM>
2018-02-08 18:42                 ` Alan Mackenzie
     [not found]                 ` <20180208184232.GB4335@ACM>
2018-02-09  9:16                   ` Bastian Beischer
2018-03-20 18:49                     ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180207222638.GB3963@ACM \
    --to=acm@muc.de \
    --cc=30367@debbugs.gnu.org \
    --cc=bastian.beischer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.