unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Slowdown (hang) with large c++ files
@ 2007-04-23 15:39 gga
  2007-04-23 23:48 ` Maciej Katafiasz
  2007-04-25  5:17 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: gga @ 2007-04-23 15:39 UTC (permalink / raw)
  To: help-gnu-emacs

I am trying to fix an issue with GNU emacs that is driving me insane
which is a severe slow-down (a hang of 10 seconds or more)  whenever
I've loaded a large C++ buffer (100,000+ lines or more -- a file
autogenerated by swig).
The hang happens sporadically for no reason (no user action triggers
it) and happens even if the buffer is not being displayed.
It may be font-lock issue, but I am unsure how to limit font-lock to
parse only a couple of lines.

Can anyone help me out or suggest stuff to try?

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

* Re: Slowdown (hang) with large c++ files
  2007-04-23 15:39 Slowdown (hang) with large c++ files gga
@ 2007-04-23 23:48 ` Maciej Katafiasz
  2007-04-25  5:17 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Maciej Katafiasz @ 2007-04-23 23:48 UTC (permalink / raw)
  To: help-gnu-emacs

Den Mon, 23 Apr 2007 08:39:54 -0700 skrev gga:

> I am trying to fix an issue with GNU emacs that is driving me insane
> which is a severe slow-down (a hang of 10 seconds or more)  whenever
> I've loaded a large C++ buffer (100,000+ lines or more -- a file
> autogenerated by swig).
> The hang happens sporadically for no reason (no user action triggers
> it) and happens even if the buffer is not being displayed.
> It may be font-lock issue, but I am unsure how to limit font-lock to
> parse only a couple of lines.
> 
> Can anyone help me out or suggest stuff to try?

Are you using CEDET / semantic? Is the file particularly nasty, such as
by having lots of code-generating macros (like, say 
FOR_BLOCK(i, "asd") { .. }) which could confuse the parser?

Cheers,
Maciej

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

* Re: Slowdown (hang) with large c++ files
  2007-04-23 15:39 Slowdown (hang) with large c++ files gga
  2007-04-23 23:48 ` Maciej Katafiasz
@ 2007-04-25  5:17 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2007-04-25  5:17 UTC (permalink / raw)
  To: help-gnu-emacs

> I am trying to fix an issue with GNU emacs that is driving me insane
> which is a severe slow-down (a hang of 10 seconds or more)  whenever
> I've loaded a large C++ buffer (100,000+ lines or more -- a file
> autogenerated by swig).
> The hang happens sporadically for no reason (no user action triggers
> it) and happens even if the buffer is not being displayed.
> It may be font-lock issue, but I am unsure how to limit font-lock to
> parse only a couple of lines.

> Can anyone help me out or suggest stuff to try?

Maybe (setq jit-lock-stealth-time nil)


        Stefan

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

end of thread, other threads:[~2007-04-25  5:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-23 15:39 Slowdown (hang) with large c++ files gga
2007-04-23 23:48 ` Maciej Katafiasz
2007-04-25  5:17 ` Stefan Monnier

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