GNU bug report logs - #12127
24.1.50; ispell slow under Emacs.app

Previous Next

Packages: ns, emacs;

Reported by: Pat Rondon <prondon <at> cs.ucsd.edu>

Date: Thu, 2 Aug 2012 23:38:02 UTC

Severity: important

Merged with 2056, 2639, 4273, 5133

Found in version 24.1.50

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12127 in the body.
You can then email your comments to 12127 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12127; Package emacs. (Thu, 02 Aug 2012 23:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pat Rondon <prondon <at> cs.ucsd.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 Aug 2012 23:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pat Rondon <prondon <at> cs.ucsd.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1.50; ispell slow under Emacs.app
Date: Thu, 02 Aug 2012 16:18:25 -0700
Run "open Emacs.app --args -Q"
Open a large file
M-x ispell-buffer
The spell checking process will take a very long time.

This problem seems to have to do with the long polling interval (.1
second) used in ns_select in src/nsterm.m. Setting the polling interval
to a shorter period helps a lot:

*** old.nsterm.m	2012-08-02 16:04:22.000000000 -0700
--- nsterm.m	2012-08-02 16:01:52.000000000 -0700
*************** ns_select (int nfds, fd_set *readfds, fd
*** 3545,3551 ****
                                                           retain];
  
    /* set a periodic task to try the pselect () again */
!   fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.1
                                                 target: NSApp
                                               selector: @selector (fd_handler:)
                                               userInfo: 0
--- 3545,3551 ----
                                                           retain];
  
    /* set a periodic task to try the pselect () again */
!   fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.001
                                                 target: NSApp
                                               selector: @selector (fd_handler:)
                                               userInfo: 0

Corresponding ChangeLog entry:

2012-08-02  Pat Rondon  <prondon <at> cs.ucsd.edu>

        * nsterm.m (ns_select): Shorten ns_select polling interval.


In GNU Emacs 24.1.50.2 (x86_64-apple-darwin11.4.0, NS apple-appkit-1138.47)
 of 2012-08-02 on manzanita
Bzr revision: 109405 eggert <at> cs.ucla.edu-20120802205949-ej38mo43ymsf8nb3
Windowing system distributor `Apple', version 10.3.1138
Configured using:
 `configure '--prefix=/Users/pmr/' '--with-ns''

Important settings:
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

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

Recent input:
M-x r e p o <tab> r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12127; Package emacs,ns. (Fri, 03 Aug 2012 05:16:02 GMT) Full text and rfc822 format available.

Message #8 received at 12127 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Pat Rondon <prondon <at> cs.ucsd.edu>
Cc: "12127 <at> debbugs.gnu.org" <12127 <at> debbugs.gnu.org>
Subject: Re: bug#12127: 24.1.50; ispell slow under Emacs.app
Date: Fri, 3 Aug 2012 07:07:59 +0200
Hello. 

This is a known problem. Making Emacs do busy waiting is not a good solution. 

   Jan D. 

3 aug 2012 kl. 01:18 skrev Pat Rondon <prondon <at> cs.ucsd.edu>:

> Run "open Emacs.app --args -Q"
> Open a large file
> M-x ispell-buffer
> The spell checking process will take a very long time.
> 
> This problem seems to have to do with the long polling interval (.1
> second) used in ns_select in src/nsterm.m. Setting the polling interval
> to a shorter period helps a lot:
> 
> *** old.nsterm.m    2012-08-02 16:04:22.000000000 -0700
> --- nsterm.m    2012-08-02 16:01:52.000000000 -0700
> *************** ns_select (int nfds, fd_set *readfds, fd
> *** 3545,3551 ****
>                                                           retain];
> 
>    /* set a periodic task to try the pselect () again */
> !   fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.1
>                                                 target: NSApp
>                                               selector: @selector (fd_handler:)
>                                               userInfo: 0
> --- 3545,3551 ----
>                                                           retain];
> 
>    /* set a periodic task to try the pselect () again */
> !   fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.001
>                                                 target: NSApp
>                                               selector: @selector (fd_handler:)
>                                               userInfo: 0
> 
> Corresponding ChangeLog entry:
> 
> 2012-08-02  Pat Rondon  <prondon <at> cs.ucsd.edu>
> 
>        * nsterm.m (ns_select): Shorten ns_select polling interval.
> 
> 
> In GNU Emacs 24.1.50.2 (x86_64-apple-darwin11.4.0, NS apple-appkit-1138.47)
> of 2012-08-02 on manzanita
> Bzr revision: 109405 eggert <at> cs.ucla.edu-20120802205949-ej38mo43ymsf8nb3
> Windowing system distributor `Apple', version 10.3.1138
> Configured using:
> `configure '--prefix=/Users/pmr/' '--with-ns''
> 
> Important settings:
>  value of $LC_CTYPE: en_US.UTF-8
>  value of $LANG: en_US.UTF-8
>  locale-coding-system: utf-8-unix
>  default enable-multibyte-characters: t
> 
> Major mode: Lisp Interaction
> 
> Minor modes in effect:
>  tooltip-mode: t
>  mouse-wheel-mode: t
>  tool-bar-mode: t
>  menu-bar-mode: t
>  file-name-shadow-mode: t
>  global-font-lock-mode: t
>  font-lock-mode: t
>  blink-cursor-mode: t
>  auto-composition-mode: t
>  auto-encryption-mode: t
>  auto-compression-mode: t
>  line-number-mode: t
>  transient-mark-mode: t
> 
> Recent input:
> M-x r e p o <tab> r t - e m <tab> <return>
> 
> Recent messages:
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Making completion list...
> 
> Load-path shadows:
> None found.
> 
> Features:
> (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
> mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
> gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
> mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook
> vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
> regexp-opt fringe tabulated-list newcomment lisp-mode register page
> menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
> syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
> vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
> romanian slovak czech european ethiopic indian cyrillic chinese
> case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
> button faces cus-face files text-properties overlay sha1 md5 base64
> format env code-pages mule custom widget hashtable-print-readable
> backquote make-network-process ns multi-tty emacs)
> 
> 




Forcibly Merged 2056 2639 4273 5133 12127. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 03 Aug 2012 07:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12127; Package emacs,ns. (Sun, 14 Oct 2012 18:42:02 GMT) Full text and rfc822 format available.

Message #13 received at 12127 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Pat Rondon <prondon <at> cs.ucsd.edu>
Cc: 12127 <at> debbugs.gnu.org
Subject: Re: bug#12127: 24.1.50; ispell slow under Emacs.app
Date: Sun, 14 Oct 2012 20:40:41 +0200
Hello.

The NS-port does not use polling anymore.  Can you test if the current approach seems like an improvement?

Thanks,

	Jan D.

3 aug 2012 kl. 01:18 skrev Pat Rondon <prondon <at> cs.ucsd.edu>:

> Run "open Emacs.app --args -Q"
> Open a large file
> M-x ispell-buffer
> The spell checking process will take a very long time.
> 
> This problem seems to have to do with the long polling interval (.1
> second) used in ns_select in src/nsterm.m. Setting the polling interval
> to a shorter period helps a lot:
> 
> *** old.nsterm.m	2012-08-02 16:04:22.000000000 -0700
> --- nsterm.m	2012-08-02 16:01:52.000000000 -0700
> *************** ns_select (int nfds, fd_set *readfds, fd
> *** 3545,3551 ****
>                                                           retain];
> 
>    /* set a periodic task to try the pselect () again */
> !   fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.1
>                                                 target: NSApp
>                                               selector: @selector (fd_handler:)
>                                               userInfo: 0
> --- 3545,3551 ----
>                                                           retain];
> 
>    /* set a periodic task to try the pselect () again */
> !   fd_entry = [[NSTimer scheduledTimerWithTimeInterval: 0.001
>                                                 target: NSApp
>                                               selector: @selector (fd_handler:)
>                                               userInfo: 0
> 
> Corresponding ChangeLog entry:
> 
> 2012-08-02  Pat Rondon  <prondon <at> cs.ucsd.edu>
> 
>        * nsterm.m (ns_select): Shorten ns_select polling interval.
> 
> 
> In GNU Emacs 24.1.50.2 (x86_64-apple-darwin11.4.0, NS apple-appkit-1138.47)
> of 2012-08-02 on manzanita
> Bzr revision: 109405 eggert <at> cs.ucla.edu-20120802205949-ej38mo43ymsf8nb3
> Windowing system distributor `Apple', version 10.3.1138
> Configured using:
> `configure '--prefix=/Users/pmr/' '--with-ns''
> 
> Important settings:
>  value of $LC_CTYPE: en_US.UTF-8
>  value of $LANG: en_US.UTF-8
>  locale-coding-system: utf-8-unix
>  default enable-multibyte-characters: t
> 
> Major mode: Lisp Interaction
> 
> Minor modes in effect:
>  tooltip-mode: t
>  mouse-wheel-mode: t
>  tool-bar-mode: t
>  menu-bar-mode: t
>  file-name-shadow-mode: t
>  global-font-lock-mode: t
>  font-lock-mode: t
>  blink-cursor-mode: t
>  auto-composition-mode: t
>  auto-encryption-mode: t
>  auto-compression-mode: t
>  line-number-mode: t
>  transient-mark-mode: t
> 
> Recent input:
> M-x r e p o <tab> r t - e m <tab> <return>
> 
> Recent messages:
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Making completion list...
> 
> Load-path shadows:
> None found.
> 
> Features:
> (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
> mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
> gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
> mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook
> vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
> regexp-opt fringe tabulated-list newcomment lisp-mode register page
> menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
> syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
> vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
> romanian slovak czech european ethiopic indian cyrillic chinese
> case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
> button faces cus-face files text-properties overlay sha1 md5 base64
> format env code-pages mule custom widget hashtable-print-readable
> backquote make-network-process ns multi-tty emacs)
> 
> 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12127; Package emacs,ns. (Sat, 09 Feb 2013 23:18:01 GMT) Full text and rfc822 format available.

Message #16 received at 12127 <at> debbugs.gnu.org (full text, mbox):

From: Pat Rondon <prondon <at> cs.ucsd.edu>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 12127 <at> debbugs.gnu.org
Subject: Re: bug#12127: 24.1.50; ispell slow under Emacs.app
Date: Sat, 9 Feb 2013 18:16:45 -0500
[Message part 1 (text/plain, inline)]
Apologies for the very long delay. It does in fact seem to be fixed.

Thanks,
pat

On Sun, Oct 14, 2012 at 2:40 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:

> Hello.
>
> The NS-port does not use polling anymore.  Can you test if the current
> approach seems like an improvement?
>
> Thanks,
>
>         Jan D.
>
[Message part 2 (text/html, inline)]

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 10 Feb 2013 01:38:04 GMT) Full text and rfc822 format available.

Notification sent to Pat Rondon <prondon <at> cs.ucsd.edu>:
bug acknowledged by developer. (Sun, 10 Feb 2013 01:38:05 GMT) Full text and rfc822 format available.

Message #21 received at 12127-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 12127-done <at> debbugs.gnu.org
Subject: Re: bug#12127: 24.1.50; ispell slow under Emacs.app
Date: Sat, 09 Feb 2013 20:37:11 -0500
Version: 24.3

Pat Rondon wrote:

> Apologies for the very long delay. It does in fact seem to be fixed.
[...]
> On Sun, Oct 14, 2012 at 2:40 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
[...]
>> The NS-port does not use polling anymore.  Can you test if the current
>> approach seems like an improvement?




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 10 Feb 2013 01:38:05 GMT) Full text and rfc822 format available.

Notification sent to Ian Eure <ian <at> digg.com>:
bug acknowledged by developer. (Sun, 10 Feb 2013 01:38:05 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 10 Feb 2013 01:38:06 GMT) Full text and rfc822 format available.

Notification sent to Plan Kalkul <pkalkul <at> gmail.com>:
bug acknowledged by developer. (Sun, 10 Feb 2013 01:38:06 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 10 Feb 2013 01:38:06 GMT) Full text and rfc822 format available.

Notification sent to David Reitter <david.reitter <at> gmail.com>:
bug acknowledged by developer. (Sun, 10 Feb 2013 01:38:07 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 10 Feb 2013 01:38:07 GMT) Full text and rfc822 format available.

Notification sent to Steve Revilak <steve <at> srevilak.net>:
bug acknowledged by developer. (Sun, 10 Feb 2013 01:38:08 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 10 Mar 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.