unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2056: 23.0.60; Enabling flyspell degrades performance
@ 2009-04-16 18:07 Chong Yidong
  0 siblings, 0 replies; 17+ messages in thread
From: Chong Yidong @ 2009-04-16 18:07 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 2056

> Following the recipe from bug#2717 on GNU/Linux shows a slowdown for
> me too.  If instead I do (as suggested in some other bug):
> emacs -Q gall1.shtml
> M-: (setq process-connection-type nil) RET
> M-x flyspell-mode RET
>
> then the cursor movement is much better.  Not perfect, but still
> better.

I see a slowdown, but the slowdown seems to be identical in Emacs 22 and
Emacs 23.  I suspect that flyspell is doing something silly (i.e., that
the problem is in flyspell rather than Emacs core).






^ permalink raw reply	[flat|nested] 17+ messages in thread
* bug#2056: 23.0.60; Enabling flyspell degrades performance
@ 2009-05-12  2:41 Marc Schwartz
  0 siblings, 0 replies; 17+ messages in thread
From: Marc Schwartz @ 2009-05-12  2:41 UTC (permalink / raw)
  To: 2056

Confirming that this behavior is still present using:

   GNU Emacs 23.0.93.1 (i386-apple-darwin9.6.2, NS apple- 
appkit-949.43) of 2009-05-11

I have the following in my .emacs:

   (load "/Users/marcschwartz/Downloads/Emacs/flyspell/flyspell")

   (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
   (add-hook 'tex-mode-hook 'flyspell-mode)
   (add-hook 'text-mode-hook 'flyspell-mode)

This is on a fully updated unibody MacBook Pro with OSX 10.5.6.

If I comment all of the above lines, the performance of emacs is fast  
when editing and scrolling through a large file. If I leave the lines  
as is, or comment the last three lines and manually enable flyspell  
mode after emacs has started up, all scrolling and general cursor  
motion slows down to a crawl.

I disabled the toolbar, as per comments in various posts, but that has  
no effect on emacs performance. This seems to be solely related to the  
use of flyspell mode.

I should also note that this same performance hit occurs with the  
Aquamacs devel branch built from their git repo, which is based upon  
emacs 23. The current release Aquamacs 1.7, which is based upon emacs  
22, does not exhibit this behavior.







^ permalink raw reply	[flat|nested] 17+ messages in thread
* bug#2056: 23.0.60; Enabling flyspell degrades performance
@ 2009-04-16 18:54 Chong Yidong
  2009-04-17 22:42 ` Ian Eure
  0 siblings, 1 reply; 17+ messages in thread
From: Chong Yidong @ 2009-04-16 18:54 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: Ian Eure, 2056, Adrian Robert, Leo

Dan Nicolaescu <dann@ics.uci.edu> wrote:

> Following the recipe from bug#2717 on GNU/Linux shows a slowdown for
> me too.

Turns out that the flyspell's sgml-mode-specific function,
sgml-mode-flyspell-verify, was quite sloppily written (among other
things, it was leaking markers).  I've checked in a version that is much
faster.  The slowdown observed with sgml-mode + flyspell should be gone
now.  This solves bug#2717.

However, there appears to be a slowdown still present on Mac OS.

In bug#2056, Ian Eure claims that there is a slowdown for all major
modes (observed on Mac OS), and in bug#2503 Leo observes a slowdown
(also observed on Mac OS).

Adrian, these may be related to how the NS port handles processes, or
tool bar update, or something along these lines.  Can you see if you can
reproduce it?






^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <mailman.5279.1239667439.31690.bug-gnu-emacs@gnu.org>]
* bug#2056: 23.0.60; Enabling flyspell degrades performance
@ 2009-04-13 23:48 Leo
  2009-04-14  7:09 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Leo @ 2009-04-13 23:48 UTC (permalink / raw)
  To: 2056

Hi there,

I'd like to point out that with turn-on-flyspell added to
text-mode-hook. M-x report-emacs-bug will take 9.8 seconds to set up the
mail buffer in my fairly modern machine (intel core 2 duo with 4G ram).
I do this measurement using stopwatch from the moment I hit RET at the
SUBJECT prompt and the result is reproducible. The process is instant
without flyspell.

This is by far the easiest way to see the great degradation in
performance due to flyspell.

I am running GNU Emacs 23.0.92.1 (i386-apple-darwin9.6.0, NS
apple-appkit-949.43) of 2009-04-12 on 64-71-7-214.static.wiline.com.

Best wishes,

Leo






^ permalink raw reply	[flat|nested] 17+ messages in thread
* bug#2056: 23.0.60; Enabling flyspell degrades performance
@ 2009-01-25 19:08 Ian Eure
  2009-01-30 12:11 ` Agustin Martin
  2012-12-22  2:00 ` Chong Yidong
  0 siblings, 2 replies; 17+ messages in thread
From: Ian Eure @ 2009-01-25 19:08 UTC (permalink / raw)
  To: emacs-pretest-bug

If you enable flyspell-mode in a buffer, Emacs gets slow. Not
unbearably slow, but there's a distinct lag when you type. It seems to
get worse as the buffer gets larger.

Other people have noticed:
http://www.nabble.com/CVS-version:-message-mode-%2B-flyspell-terribly-slow-td20666831.html

The behavior doesn't happen on Emacs 22.

In GNU Emacs 23.0.60.1 (i386-apple-darwin9.6.0, NS
apple-appkit-949.43)
  of 2009-01-20 on neutron.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''

Important settings:
   value of $LC_ALL:
   value of $LC_COLLATE: en_US.UTF-8
   value of $LC_CTYPE: en_US.UTF-8
   value of $LC_MESSAGES: en_US.UTF-8
   value of $LC_MONETARY: en_US.UTF-8
   value of $LC_NUMERIC: en_US.UTF-8
   value of $LC_TIME: en_US.UTF-8
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default-enable-multibyte-characters: t

Major mode: VC dir

Minor modes in effect:
   shell-dirtrack-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
S u b s e q u e n t SPC c o m m a n d s SPC f a i l
SPC t o SPC r u n , SPC M-b M-b M-b o n SPC t h e SPC
d i r e d SPC b u f f e r SPC C-e C-n s i n c e SPC
t h e y SPC p a s s SPC a SPC n o n e s i <backspace>
<backspace> x i s t e n t SPC p a t h SPC t o SPC g
i t . <return> <return> M-` M-` T h e SPC i s s u e
SPC s e e m s SPC t o SPC b e SPC t h a t SPC <switch-frame>
<switch-frame> v c - d i r e d SPC u s <backspace>
<backspace> c a l l s SPC g i t SPC d i g g - <backspace>
<backspace> <backspace> f f - i n d e x , SPC w h i
c h SPC s h o w s SPC a l l SPC p a t h s SPC r e l
a t i v e SPC t o SPC t h e SPC W C SPC r o o t SPC
r a t h e r SPC t h a n SPC t h e SPC P W D . M-b C-d
C C-e SPC T h i s SPC l e a d s SPC t o SPC o n <backspace>
<backspace> <M-backspace> <M-backspace> <M-backspace>
<backspace> C-n C-x C-o C-v C-v C-v C-s t SPC i SPC
n SPC y C-n C-p M-< C-c C-c y e s <return> <switch-frame>
<switch-frame> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Mark set
Undo!
Mark set
Auto-saving...done
tmm-prompt: Command attempted to use minibuffer while in minibuffer
Quit
Auto-saving...done
Mark saved where search started
Mark set
Sending...done






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

end of thread, other threads:[~2012-12-22  2:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-16 18:07 bug#2056: 23.0.60; Enabling flyspell degrades performance Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-05-12  2:41 Marc Schwartz
2009-04-16 18:54 Chong Yidong
2009-04-17 22:42 ` Ian Eure
     [not found] <mailman.5279.1239667439.31690.bug-gnu-emacs@gnu.org>
2009-04-14  4:34 ` Miles Bader
2009-04-14  5:02   ` Leo
2009-04-14  7:10     ` Eli Zaretskii
2009-04-14 22:21       ` Leo
2009-04-13 23:48 Leo
2009-04-14  7:09 ` Eli Zaretskii
2009-04-14 16:28   ` Glenn Morris
2009-04-14 17:09     ` Stefan Monnier
2009-04-14 17:47       ` Dan Nicolaescu
2009-01-25 19:08 Ian Eure
2009-01-30 12:11 ` Agustin Martin
2009-03-26 21:22   ` Ian Eure
2012-12-22  2:00 ` Chong Yidong

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