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: Sun, 14 Oct 2012 20:40:41 +0200 Message-ID: <12A9F346-1DD7-41C3-8731-59817C7676B4@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1350240069 23608 80.91.229.3 (14 Oct 2012 18:41:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2012 18:41:09 +0000 (UTC) Cc: 12127@debbugs.gnu.org To: Pat Rondon Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 20:41:16 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 1TNT7f-0001a9-KX for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 20:41:11 +0200 Original-Received: from localhost ([::1]:46985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNT7Y-00044r-BI for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 14:41:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNT7V-00043q-Dd for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 14:41:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNT7U-0005GR-16 for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 14:41:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNT7T-0005GN-U5 for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 14:40:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TNT8U-0004Wo-8a for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 14:42: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: Sun, 14 Oct 2012 18:42: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.135024011617395 (code B ref 12127); Sun, 14 Oct 2012 18:42:02 +0000 Original-Received: (at 12127) by debbugs.gnu.org; 14 Oct 2012 18:41:56 +0000 Original-Received: from localhost ([127.0.0.1]:44094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNT8N-0004WV-Mx for submit@debbugs.gnu.org; Sun, 14 Oct 2012 14:41:56 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:47240) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNT8K-0004WG-Gv for 12127@debbugs.gnu.org; Sun, 14 Oct 2012 14:41:53 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id BA2F592DB for <12127@debbugs.gnu.org>; Sun, 14 Oct 2012 20:40:43 +0200 (CEST) Original-Received: (qmail 12335 invoked by uid 89); 14 Oct 2012 18:40:08 -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; 14 Oct 2012 18:40:08 -0000 Original-Received: from anon-175-163.vpn.ipredator.se (anon-175-163.vpn.ipredator.se [93.182.175.163]) by coolsville.localdomain (Postfix) with ESMTPSA id ED10B7FA05E; Sun, 14 Oct 2012 20:40:42 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.1499) 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:65605 Archived-At: 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 : > 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_handler:) > 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_handler:) > 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