unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Cc-mode font-lock too slow with large file
@ 2013-10-15  9:27 kona.ming
  2013-10-18 19:26 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: kona.ming @ 2013-10-15  9:27 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

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?


从三星移动设备发送

[-- Attachment #2: Type: text/html, Size: 456 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cc-mode font-lock too slow with large file
  2013-10-15  9:27 Cc-mode font-lock too slow with large file kona.ming
@ 2013-10-18 19:26 ` Alan Mackenzie
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2013-10-18 19:26 UTC (permalink / raw)
  To: kona.ming; +Cc: emacs-devel

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).



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-18 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15  9:27 Cc-mode font-lock too slow with large file kona.ming
2013-10-18 19:26 ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).