From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: RMAIL slows Date: Sun, 20 Mar 2005 07:59:21 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1111325166 1028 80.91.229.2 (20 Mar 2005 13:26:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 13:26:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 14:26:05 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD0Qw-0005Vg-Gu for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 14:25:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD0hq-0001Th-44 for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 08:43:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DD0K8-0008Ai-1x for emacs-devel@gnu.org; Sun, 20 Mar 2005 08:18:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DD0K4-00088V-BL for emacs-devel@gnu.org; Sun, 20 Mar 2005 08:18:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD0K3-00081d-CJ for emacs-devel@gnu.org; Sun, 20 Mar 2005 08:18:27 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DD01b-0001Ih-3g for emacs-devel@gnu.org; Sun, 20 Mar 2005 07:59:23 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DD01Z-0001TZ-OU; Sun, 20 Mar 2005 07:59:21 -0500 Original-To: bob@rattlesnake.com In-reply-to: (bob@rattlesnake.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34815 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34815 Deletion in RMAIL slows after an instance of GNU Emacs has been running for several days. The time to delete the same 50 messages, all marked with `d', is double in the five day older instance than in the newer instance. You said "deletion", but do you really mean "expunging"? It looks that way. The info you got with the profiler doesn't tell us much. What you need to do is find out where in the code the slowness is occurring. Since rmail-summary-goto-msg contains no loops, if it gets slower the slowness must be in a subroutine. Since you did not see it in ELP, it must be within a primitive written in C. You could try running under GDB, doing the slow operation, and stopping it with C-z to make a backtrace. If you set up a loop to call some summary command over and over, you will be able to type C-z and make a backtrace as much as you like. After you do it a few times, you should see a pattern. Here is the backtrace for the older instance. In both instances, I went to the most recent message, # 247, then to the previous message, then to the next (i.e., most recent message) again, then suspended the instance and ran `bt'. Since you made that backtrace when Emacs was waiting, not during the operation in question, it tells nothing relevant to the issue.