From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#496: 23.0.60; ispell-word becomes increasingly slower Date: Sat, 28 Jun 2008 10:20:00 +0300 Message-ID: References: <20080628002655.A4921924848@mt-computer.local> Reply-To: Eli Zaretskii , 496@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1214639695 5661 80.91.229.12 (28 Jun 2008 07:54:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2008 07:54:55 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, bug-submit-list@donarmstrong.com To: Markus Triska , 496@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 28 09:55:40 2008 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 1KCVHS-00012j-1Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jun 2008 09:55:34 +0200 Original-Received: from localhost ([127.0.0.1]:57994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCVGc-0007wY-95 for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jun 2008 03:54:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KCVGX-0007vp-8J for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2008 03:54:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KCVGV-0007vC-9U for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2008 03:54:36 -0400 Original-Received: from [199.232.76.173] (port=40682 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCVGV-0007v9-2X for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2008 03:54:35 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:36809) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KCVGU-0003rW-DV for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2008 03:54:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KCVGT-00063o-H1 for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2008 03:54:33 -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 m5S7lBxt005391; Sat, 28 Jun 2008 00:47:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m5S7U6nH000899; Sat, 28 Jun 2008 00:30:06 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 28 Jun 2008 07:30:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 496 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 496-submit@emacsbugs.donarmstrong.com id=B496.121463761331399 (code B ref 496); Sat, 28 Jun 2008 07:30:06 +0000 Original-Received: (at 496) by emacsbugs.donarmstrong.com; 28 Jun 2008 07:20:13 +0000 Original-Received: from mtaout3.012.net.il (mtaout3.012.net.il [84.95.2.7]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5S7K8vj030823 for <496@emacsbugs.donarmstrong.com>; Sat, 28 Jun 2008 00:20:09 -0700 Original-Received: from HOME-C4E4A596F7 ([80.230.31.196]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K35003VGX2THTE4@i_mtaout3.012.net.il> for 496@emacsbugs.donarmstrong.com; Sat, 28 Jun 2008 10:35:18 +0300 (IDT) In-reply-to: <20080628002655.A4921924848@mt-computer.local> X-012-Sender: halo1@inter.net.il X-CrossAssassin-Score: 2 X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Sat, 28 Jun 2008 03:54:36 -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:18556 gmane.emacs.pretest.bugs:22692 Archived-At: > Resent-From: Markus Triska > Resent-To: bug-submit-list@donarmstrong.com > Resent-CC: Emacs Bugs > Resent-Sender: don@donarmstrong.com > From: Markus Triska > Date: Sat, 28 Jun 2008 02:26:55 +0200 (CEST) > Cc: > > > When I save the following form to test.el: > > (let ((n 0)) > (with-temp-buffer > (insert "test") > (while t > (setq n (1+ n)) > (when (= (mod n 100) 0) > (message "n: %s -- %s" n (emacs-uptime))) > (ispell-word nil t)))) > > and then do "emacs -Q --script test.el", I get: > > Starting new Ispell process [default] ... > n: 100 -- 0 seconds > n: 200 -- 0 seconds > n: 300 -- 0 seconds > n: 400 -- 0 seconds > n: 500 -- 1 second > n: 600 -- 1 second > n: 700 -- 1 second > n: 800 -- 1 second > n: 900 -- 1 second > n: 1000 -- 1 second > n: 1100 -- 1 second > n: 1200 -- 1 second > n: 1300 -- 1 second > n: 1400 -- 1 second > n: 1500 -- 1 second > n: 1600 -- 1 second > n: 1700 -- 1 second > n: 1800 -- 1 second > n: 1900 -- 1 second > n: 2000 -- 1 second > ... > n: 52400 -- 3 minutes, 12 seconds > n: 52500 -- 3 minutes, 13 seconds > n: 52600 -- 3 minutes, 14 seconds > n: 52700 -- 3 minutes, 15 seconds > .. > n: 70500 -- 8 minutes, 30 seconds > n: 70600 -- 8 minutes, 31 seconds > n: 70700 -- 8 minutes, 33 seconds > n: 70800 -- 8 minutes, 35 seconds > n: 70900 -- 8 minutes, 36 seconds > n: 71000 -- 8 minutes, 38 seconds > ... > > i.e., the program becomes increasingly slower, from many iterations > per second to several seconds per iteration. With "top", I also see > that aspell uses increasingly more memory. I can reproduce this on > Fedora Core 9 and OSX 10.4 with Aspell 0.60.5. In a simplified test to > check for memory leaks in aspell, I did: > > $ while true; do echo "test"; done | aspell -a > > and in this case, aspell's memory usage seems to stay constant. Garbage collection?