all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* CVS version: message mode + flyspell terribly slow
@ 2008-11-24 12:44 Klaus Zeitler
  2008-11-24 19:00 ` Leo
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Klaus Zeitler @ 2008-11-24 12:44 UTC (permalink / raw)
  To: emacs-devel

It seems as if emacs 23 is under some circumstances a lot slower than 22.2.
I'm using CVS version under Solaris 5.8.
A good example is message-mode (from Gnus) together with flyspell.
1. start CVS version: emacs -Q
2. C-x C-f <message_file>
3. M-x message-mode
4. M-x flyspell-mode
Now editing, even cursor movement (forward-char, backward-char), is
unbearably slow. 

How can I figure out what's causing this?

BTW that is not the only case where emacs 23 is slower than 22.2, I have a
feeling that the CVS version is a bit slower in general.

Klaus

-- 
 --------------------------------------------------
|  Klaus Zeitler      Alcatel-Lucent               |
|  Email:             kzeitler@alcatel-lucent.com  |
 --------------------------------------------------
---
Military intelligence is a contradiction in terms. -- Groucho Marx




^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: CVS version: message mode + flyspell terribly slow
@ 2008-11-28 16:03 Chong Yidong
  0 siblings, 0 replies; 13+ messages in thread
From: Chong Yidong @ 2008-11-28 16:03 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

> > Performance seems to be improved, but still noticeably worse than when
> > the tool-bar is disabled.
> >
> > 1. emacs -Q --eval "(setq scroll-conservatively 10)"
> > 2. C-h n
> > 2a. M-x tool-bar-mode RET
> > 3. C-n (press and hold down, causing continuous scrolling)
> >
> > When 2a is omitted, there are occasional pauses in scrolling.  When
> > the tool bar is disabled, scrolling is much smoother.
>
> Is that linked to the "dynamic keymap" as well (even though you've sped
> it up with caching) or is there some other reason?

I think it's likely to be related to the dynamic keymap.

The pauses in scrolling are due to garbage collection.  In the test case
described above (i.e. scrolling the NEWS buffer continuously with
scroll-conservatively on), garbage collection occurs once every three or
four seconds when the tool-bar is enabled.  When tool-bar is disabled,
it occurs once every thirty seconds.  My guess is that
tool-bar-make-keymap is called so often that the consing it performs
triggers frequent garbage collection.

One thing to note is that the hash tables we use for caching the
tool-bar keymaps are weak, so we have to recompute the keymaps after
each gc.  However, making the hash tables strong does not improve
performance significantly.




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

end of thread, other threads:[~2008-11-28 16:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 12:44 CVS version: message mode + flyspell terribly slow Klaus Zeitler
2008-11-24 19:00 ` Leo
2008-11-24 20:28 ` Chong Yidong
2008-11-26 20:19 ` Chong Yidong
2008-11-26 20:26   ` Chong Yidong
2008-11-26 20:58 ` Chong Yidong
2008-11-26 21:30   ` Chong Yidong
2008-11-27  2:52     ` Stefan Monnier
2008-11-27  3:42       ` Chong Yidong
2008-11-27 16:25         ` Stefan Monnier
2008-11-27 14:06     ` Klaus Zeitler
2008-11-27 18:23     ` Reiner Steib
  -- strict thread matches above, loose matches on Subject: below --
2008-11-28 16:03 Chong Yidong

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.