all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Cc: Alan Mackenzie <acm@muc.de>
Subject: c-find-decl-spots
Date: Fri, 09 Jun 2023 16:34:07 +0800	[thread overview]
Message-ID: <87pm65hw5c.fsf@yahoo.com> (raw)
In-Reply-To: 87pm65hw5c.fsf.ref@yahoo.com

I've been encountering some files that cause C Mode to become
pathologically slow.  The most I can determine is that after each edit,
`font-lock-fontify-keywords-region' calls the CC Mode fontification
machinery, which then spends a lot of time in `c-find-decl-spots'.

My guess is that some cache machinery in that function is not working as
intended.  I haven't figured out how to debug this any further.  Any
help would be appreciated.

Thanks in advance.



       reply	other threads:[~2023-06-09  8:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87pm65hw5c.fsf.ref@yahoo.com>
2023-06-09  8:34 ` Po Lu [this message]
2023-06-10 12:24   ` c-find-decl-spots Alan Mackenzie
2023-06-10 13:03     ` c-find-decl-spots Po Lu

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=87pm65hw5c.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /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.