From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.bugs Subject: bug#2056: 23.0.60; Enabling flyspell degrades performance Date: Fri, 17 Apr 2009 15:42:07 -0700 Message-ID: References: <87hc0oig4p.fsf@cyd.mit.edu> Reply-To: Ian Eure , 2056@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240009475 29266 80.91.229.12 (17 Apr 2009 23:04:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2009 23:04:35 +0000 (UTC) Cc: 2056@emacsbugs.donarmstrong.com, Adrian Robert , Dan Nicolaescu , Leo To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 01:05:54 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lux7i-0004dj-9l for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 01:05:50 +0200 Original-Received: from localhost ([127.0.0.1]:38061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lux6J-0006wj-Ko for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 19:04:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lux6F-0006vL-Hg for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 19:03:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lux6B-0006sq-12 for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 19:03:59 -0400 Original-Received: from [199.232.76.173] (port=35576 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lux6A-0006sg-RR for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 19:03:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56122) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lux6A-0001UL-5D for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 19:03:54 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3HN3pJN012100; Fri, 17 Apr 2009 16:03:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3HMo2BS008223; Fri, 17 Apr 2009 15:50:02 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ian Eure Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Apr 2009 22:50:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2056 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2056-submit@emacsbugs.donarmstrong.com id=B2056.12400081326631 (code B ref 2056); Fri, 17 Apr 2009 22:50:02 +0000 Original-Received: (at 2056) by emacsbugs.donarmstrong.com; 17 Apr 2009 22:42:12 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.digg.com (zimbra.digg.com [64.191.203.36]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3HMg91R006625 for <2056@emacsbugs.donarmstrong.com>; Fri, 17 Apr 2009 15:42:10 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 57387A84FC0; Fri, 17 Apr 2009 15:42:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gHdJR8xjL1Vq; Fri, 17 Apr 2009 15:42:08 -0700 (PDT) Original-Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id 6BAF5A84F10; Fri, 17 Apr 2009 15:42:08 -0700 (PDT) In-Reply-To: <87hc0oig4p.fsf@cyd.mit.edu> X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 17 Apr 2009 19:03:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27288 Archived-At: On Apr 16, 2009, at 11:54 AM, Chong Yidong wrote: > Dan Nicolaescu 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). > This change has no effect on the performance issue I see. > 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? The NS port seems to be very slow generally. For example, faces seem to be extremely slow to paint/refresh. You can see this: 1. M-x sql-sqlite RET /tmp/foo.sqlite3 RET 2. C-x 4 b *sql* RET 3. M-x sql-mode RET 4. Enter this query: CREATE TABLE `foo` ( `id` integer primary KEY ); 5. C-x h C-w 6. C-x o C-y RET Now place the mouse pointer over the query in the sqli buffer. The input is highlighted with a green background. This is so slow to draw that you can see it being painted line by line. If you type in the buffer with the pointer over the text, it erases and redraws the highlight with every key press. It's really terrible, but it might be beyond the scope of this specific issue. - Ian