From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12127: 24.1.50; ispell slow under Emacs.app Date: Fri, 3 Aug 2012 07:07:59 +0200 Message-ID: <2470F2F5-4130-4E67-BBE7-375492203AB5@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343970515 19034 80.91.229.3 (3 Aug 2012 05:08:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2012 05:08:35 +0000 (UTC) Cc: "12127@debbugs.gnu.org" <12127@debbugs.gnu.org> To: Pat Rondon Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 03 07:08:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SxA7n-0007vR-2H for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 07:08:35 +0200 Original-Received: from localhost ([::1]:55929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxA7m-0004NF-0e for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 01:08:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxA7i-0004NA-0C for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 01:08:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxA7g-0003Pu-J0 for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 01:08:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxA7g-0003Pq-FH for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 01:08:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SxAF0-0003rm-7Z for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 01:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Aug 2012 05:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12127 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 12127-submit@debbugs.gnu.org id=B12127.134397094314834 (code B ref 12127); Fri, 03 Aug 2012 05:16:02 +0000 Original-Received: (at 12127) by debbugs.gnu.org; 3 Aug 2012 05:15:43 +0000 Original-Received: from localhost ([127.0.0.1]:57960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxAEh-0003rC-3r for submit@debbugs.gnu.org; Fri, 03 Aug 2012 01:15:43 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:62489) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxAEd-0003r3-2s for 12127@debbugs.gnu.org; Fri, 03 Aug 2012 01:15:40 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 7F2F29DF4 for <12127@debbugs.gnu.org>; Fri, 3 Aug 2012 07:08:02 +0200 (CEST) Original-Received: (qmail 24502 invoked by uid 89); 3 Aug 2012 05:07:51 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 3 Aug 2012 05:07:51 -0000 Original-Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id 8F4AE7FA06C; Fri, 3 Aug 2012 07:08:01 +0200 (CEST) In-Reply-To: X-Mailer: iPhone Mail (9B206) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62777 Archived-At: Hello.=20 This is a known problem. Making Emacs do busy waiting is not a good solution= .=20 Jan D.=20 3 aug 2012 kl. 01:18 skrev Pat Rondon : > Run "open Emacs.app --args -Q" > Open a large file > M-x ispell-buffer > The spell checking process will take a very long time. >=20 > 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: >=20 > *** 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]; >=20 > /* set a periodic task to try the pselect () again */ > ! fd_entry =3D [[NSTimer scheduledTimerWithTimeInterval: 0.1 > target: NSApp > selector: @selector (fd_hand= ler:) > userInfo: 0 > --- 3545,3551 ---- > retain]; >=20 > /* set a periodic task to try the pselect () again */ > ! fd_entry =3D [[NSTimer scheduledTimerWithTimeInterval: 0.001 > target: NSApp > selector: @selector (fd_hand= ler:) > userInfo: 0 >=20 > Corresponding ChangeLog entry: >=20 > 2012-08-02 Pat Rondon >=20 > * nsterm.m (ns_select): Shorten ns_select polling interval. >=20 >=20 > 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@cs.ucla.edu-20120802205949-ej38mo43ymsf8nb3 > Windowing system distributor `Apple', version 10.3.1138 > Configured using: > `configure '--prefix=3D/Users/pmr/' '--with-ns'' >=20 > 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 >=20 > Major mode: Lisp Interaction >=20 > 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 >=20 > Recent input: > M-x r e p o r t - e m >=20 > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Making completion list... >=20 > Load-path shadows: > None found. >=20 > 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) >=20 >=20