all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: "kona.ming" <kona.ming@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Cc-mode font-lock too slow with large file
Date: Fri, 18 Oct 2013 19:26:31 +0000	[thread overview]
Message-ID: <20131018192631.GA3012@acm.acm> (raw)
In-Reply-To: <bidroomwd4lxj9mwivoiusbd.1381829234559@email.android.com>

On Tue, Oct 15, 2013 at 05:27:14PM +0800, kona.ming wrote:
> I have a large c file,about 10000 lines. I can't scroll it after open,
> has 2 or 3 seconds lag. The font-lock-maxium-decoration is t, set it to
> 2 will better but still lag.  How to making emacs working on the file?

This is not usual in C files.  For example, xdisp.c (part of Emacs) is
~30,000 lines long, but scrolls reasonably fast.  It may be that there's
something unusual about your file which is making C Mode slow - something
like a very large macro, or a very large enum.

Firstly, could you please tell us what version of Emacs and CC Mode
you're using.  (M-x emacs-version and M-x c-version).

Is the lag as bad if you start Emacs as emacs -Q?

Would it be possible for you to send me the file?  If so, please send it
to <acm@muc.de>, and tell me anything I need to do to make it slow.  Then
I can investigate the problem directly.

> 从三星移动设备发送

-- 
Alan Mackenzie (Nuremberg, Germany).



      reply	other threads:[~2013-10-18 19:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15  9:27 Cc-mode font-lock too slow with large file kona.ming
2013-10-18 19:26 ` Alan Mackenzie [this message]

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=20131018192631.GA3012@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=kona.ming@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.