From: Alan Mackenzie <acm@muc.de>
To: Robert <Robert.Folland@gmail.com>
Cc: bug-cc-mode@gnu.org, help-gnu-emacs@gnu.org
Subject: Re: 22.2 slower than 21.3
Date: Fri, 29 Aug 2008 14:27:25 +0000 [thread overview]
Message-ID: <20080829142725.GA1053@muc.de> (raw)
In-Reply-To: <217aa644-6378-4fa1-992b-8d5af4edcfb5@m73g2000hsh.googlegroups.com>
Hi, Robert!
On Fri, Aug 29, 2008 at 01:06:52AM -0700, Robert wrote:
> Hi,
> I just installed 22.2 (pre-built binary for Windows XP), but find it
> slower than 21.3. I notice when opening C-files. I went straight back
> to 21.3 now because of that.
There was a bug in older CC Modes which made it "necessary" to scan
entire buffers when loading them. It was this:
#########################################################################
put the following into
a C file, somewhere near the beginning:
#warning for isn't a keyword here.
This will foul up the font locking in the rest of the file. Even more
dramatically, insert this:
#warning for isn't a keyword here. (
//#warning for isnt a keyword here.
void foo (bar)
{
#error Brace yourself! }
printf ("Hello, world!\n") ; /* the famous one liner! */
}
Now the paren matching functions are fouled up.
#########################################################################
However, the fix for this this shouldn't make Emacs that much slower to
load. On my 1.2 GHz Athlon, it added around 1 second per Mbyte of C
buffer.
> I have not been following this group regularly, is this a well known
> issue?
No. At least, not yet. :-)
> Will this get faster in upcoming versions? The problem could perhaps
> also be that the binary for Windows was built differently. Have
> others seen the same as me?
Could you give me some figures, please? _HOW_ much slower is the new CC
mode? Could you please do:
(i) C-x C-f for a large C file please, one stored on your local hard
drive. Then kill the buffer with C-x k, thus ensuring the file is in
the file system cache, if any.
(ii) Do C-x C-f for this file again, and say how long it takes.
(iii) Do C-x C-f for the same file in Emacs 21.x. How long does this
take?
(iv) State how large the file is, and what make and speed of CPU you
have.
Thanks!
If there is a real problem here, like files taking 1 minute to load,
it'll get fixed. If it's a case of the loading feeling a bit sluggish
(an extra 1 or 2 seconds to load), it may be possible to optimise things
a bit.
Look forward to hearing from you!
[P.S. It would be helpful if you could put "C Mode" or "a C file" or
something like that in the subject line for things like this. That way,
I'm less likely to miss it.]
> -Robert
--
Alan Mackenzie (Nuremberg, Germany).
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
next prev parent reply other threads:[~2008-08-29 14:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 8:06 22.2 slower than 21.3 Robert
2008-08-29 11:22 ` Martin Fischer
2008-08-29 11:35 ` Robert
2008-08-29 14:27 ` Alan Mackenzie [this message]
[not found] ` <mailman.17893.1220019825.18990.help-gnu-emacs@gnu.org>
2008-09-01 8:14 ` Robert
2008-09-01 8:47 ` Robert
2008-09-14 21:52 ` David Combs
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=20080829142725.GA1053@muc.de \
--to=acm@muc.de \
--cc=Robert.Folland@gmail.com \
--cc=bug-cc-mode@gnu.org \
--cc=help-gnu-emacs@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.