From: John Wiegley <jwiegley@gmail.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: bug-cc-mode@gnu.org,
mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp,
11545@debbugs.gnu.org
Subject: bug#11545: 24.0.96-mac-2.92; Strange speed problem scrolling in C++ code
Date: Wed, 23 May 2012 02:24:49 -0500 [thread overview]
Message-ID: <m2hav7pdfi.fsf@gmail.com> (raw)
In-Reply-To: <wlvcju737a.wl%mituharu@math.s.chiba-u.ac.jp> (YAMAMOTO Mitsuharu's message of "Fri, 18 May 2012 09:17:13 +0900")
>>>>> YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:
> With the Time Profiler in Instrument.app, I found that fontification
> of CC Mode in Emacs 24 is much heavier and causes frequent GCs than
> that in Emacs 23. Please try the following:
>
> 1. Start Emacs 24 Mac port with -Q (alternatively, pressing the
> shift key.)
> 2. M-x load-file PREFIX/share/emacs/23.4/lisp/progmodes/cc-fonts.elc
> RTE.
> 3. Replay scrolling a large C++ file.
>
> I'm not sure if this slowdown is intended or expected.
Indeed, this makes the speed situation much better on Emacs 24.0.97.
- When I scroll a large C++ file in Emacs 24.0.97 the first time, the
performance is very choppy, even on a powerful Mac Pro machine.
There are moments toward the end of the file when I can actually count out
10 seconds or so before it moves on to the next page. The file is 17,983
lines long, consisting entirely of type declarations, enum, #define's and
prototypes.
- If I press M-<, go back to the top of the file, and then scroll to the
bottom again, there are basically no pauses.
- If I delete the buffer and re-open the file, scrolling is the same as
before.
- If I delete the buffer and load cc-fonts.elc from Emacs 23.4, scrolling
performance is *much* better. It is less choppy, and although it still
shows one long pause toward the end (garbage collection?), that's it.
- As before, going to the top with M-< and re-scrolling shows perfect speed,
no lag whatsoever; and killing the buffer and re-scrolling shows the same
faster performance as before, with less lag (but still a little bit).
The strange thing is, cc-fonts.el.gz is identical between Emacs 23.4 and Emacs
24.0.97! Only the .elc's differ. Have we found a byte-compilation issue in
Emacs 24?
John
next parent reply other threads:[~2012-05-23 7:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m2d364ocwo.fsf@gmail.com>
[not found] ` <wlwr4bsioz.wl%mituharu@math.s.chiba-u.ac.jp>
[not found] ` <m2zk97qvpr.fsf@gmail.com>
[not found] ` <wlvcju737a.wl%mituharu@math.s.chiba-u.ac.jp>
2012-05-23 7:24 ` John Wiegley [this message]
2012-05-23 7:35 ` bug#11545: 24.0.96-mac-2.92; Strange speed problem scrolling in C++ code Andreas Schwab
2012-05-23 7:51 ` Glenn Morris
2012-05-23 8:15 ` Glenn Morris
2012-05-23 10:28 ` John Wiegley
2012-05-23 16:16 ` Eli Zaretskii
2012-05-23 22:27 ` John Wiegley
2012-05-25 21:45 ` Alan Mackenzie
2012-05-26 7:46 ` John Wiegley
2012-05-28 23:05 ` John Wiegley
2012-06-02 21:20 ` Alan Mackenzie
2012-06-11 13:31 ` bug#11545: " John Wiegley
2019-11-01 18:40 ` Stefan Kangas
2019-11-02 10:59 ` Alan Mackenzie
2019-11-02 11:08 ` Stefan Kangas
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=m2hav7pdfi.fsf@gmail.com \
--to=jwiegley@gmail.com \
--cc=11545@debbugs.gnu.org \
--cc=bug-cc-mode@gnu.org \
--cc=mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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).