From: Alan Mackenzie <acm@muc.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, yu jie <yujie052@gmail.com>,
emacs-devel@gnu.org
Subject: Re: ntemacs hangs when openning the attached file
Date: Tue, 20 May 2008 16:13:03 +0000 [thread overview]
Message-ID: <20080520161303.GC3729@muc.de> (raw)
In-Reply-To: <uy76mebyo.fsf@gnu.org>
Stefan, Eli,
On Wed, May 07, 2008 at 11:48:47AM +0300, Eli Zaretskii wrote:
> > Date: Wed, 7 May 2008 12:01:38 +0800
> > From: "yu jie" <yujie052@gmail.com>
> > The current CVS header version hangs when openning the attached file.
> No, it doesn't hang, it just takes a lot of time to visit this file.
> I measured 61 seconds on a 3GHz machine. This file has 86406 lines,
> ....
and at 1 line per second would take just over a day to print. This is a
big file.
> I'm guessing that this formatting coupled with the sheer size of the
> file somehow triggers an inefficiency.
[ .... ]
> This seems not to be related to fontification, but rather to something
> that c-neutralize-syntax-in-CPP does during C Mode initialization.
It's just that c-neutralize-syntax-in-CPP takes a long time in such a
large buffer. However, it would take just as long if it were split into
several smaller buffers.
c-neutralize-syntax-in-CPP is a newish function which counteracts
problems cause by things like:
#define RBRACE }
. The answer would seem to be calling the function lazily or in the
background, a bit like jit-lock does for font locking.
Stefan, I think you mentioned a long time ago that jit could be used for
things other than font locking, but I can't find the thread. Any clues?
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2008-05-20 16:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <42b562540805062101s3e79eecel5ddc5b19821deda2@mail.gmail.com>
2008-05-07 8:48 ` ntemacs hangs when openning the attached file Eli Zaretskii
2008-05-20 16:13 ` Alan Mackenzie [this message]
2008-05-22 4:42 ` Stefan Monnier
2008-05-23 21:01 ` Alan Mackenzie
2008-05-23 21:36 ` Stefan Monnier
2008-05-24 13:16 ` Alan Mackenzie
2008-05-24 8:18 ` Eli Zaretskii
2008-05-24 13:17 ` Alan Mackenzie
2008-05-07 17:34 ` Richard M Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080520161303.GC3729@muc.de \
--to=acm@muc.de \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=yujie052@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 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).