From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: RMAIL slows Date: Mon, 25 Apr 2005 10:23:14 +0000 (UTC) Message-ID: References: <85ll7m8nbq.fsf@gnu.org> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1114425312 26504 80.91.229.2 (25 Apr 2005 10:35:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2005 10:35:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 25 12:35:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQ0vC-0005fq-A1 for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2005 12:34:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ10h-00047Z-Ae for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2005 06:40:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQ10L-00045R-J3 for emacs-devel@gnu.org; Mon, 25 Apr 2005 06:39:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQ10K-000459-K0 for emacs-devel@gnu.org; Mon, 25 Apr 2005 06:39:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ10K-00044z-Fl for emacs-devel@gnu.org; Mon, 25 Apr 2005 06:39:52 -0400 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQ0o2-0001Wv-PS; Mon, 25 Apr 2005 06:27:11 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Mon, 25 Apr 2005 10:23:14 +0000 (UTC) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sat, 23 Apr 2005 18:24:26 -0400) 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 Xref: news.gmane.org gmane.emacs.devel:36358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36358 [After running the same RMAIL for several days, deletions slow; but not immediately. Using the `emacs/src/emacs' executable of 2005 Mar 30.] I think you said it was spending most of the time in regexp matching. Is that right? If so, can you determine what regexp it spends most of its time matching? ... Here are three instances. Each instance involved deleting 50 messages each and suspending in the middle of the action for GDB. In instances 1 and 3, `xbacktrace' showed "rmail-reformat-message". Instance 2 did not. In instance 1, `backtrace' (not `xbacktrace') showed "adjust_markers_for_delete"; the other two instances showed "re_match_2_internal". ## Instance 1 (gdb) xbacktrace "delete-char" "rmail-reformat-message" "rmail-show-message" "rmail-summary-goto-msg" "rmail-summary-delete-forward" "call-interactively" (gdb) bt #0 adjust_markers_for_delete (from=6865840, from_byte=6865840, to=6865841, to_byte=6865841) at insdel.c:353 #1 0x0814113b in del_range_2 (from=6865840, from_byte=6865840, to=6865841, to_byte=6865841, ret_string=0) at insdel.c:1946 #2 0x08140d94 in del_range_1 (from=6865840, to=6865841, prepare=1, ret_string=8310629) at insdel.c:1813 ## Instance 2 (gdb) xbacktrace "re-search-forward" "goto-address-fontify" "goto-address" "run-hooks" "rmail-show-message" "rmail-summary-goto-msg" "rmail-summary-delete-forward" "call-interactively" (gdb) bt #0 re_match_2_internal (bufp=0x83291ac, string1=0x41152088 "From: Service de distribution du courrier \nSubject: =?ISO-8859-15?Q?Notification_d'=E9tat_de_la_distribution?=\nTo: terencio@rattlesnake.com\nDate: Sun, 24 Apr 2005 07:07:49 +020"..., size1=202, string2=0x41152fb3 "\nCe message MIME en plusieurs parties contient une notification d'\201\303\201\251tat de distribution.\nSi vous voyez ce texte, il est possible que votre client de courrier ne puisse pas\nlire les messages MIME for"..., size2=1856, pos=2013, regs=0x8320268, stop=2058) at regex.c:4944 #1 0x08164102 in re_search_2 (bufp=0x83291ac, str1=0x41152088 "From: Service de distribution du courrier \nSubject: =?ISO-8859-15?Q?Notification_d'=E9tat_de_la_distribution?=\nTo: terencio@rattlesnake.com\nDate: Sun, 24 Apr 2005 07:07:49 +020"..., size1=202, str2=0x41152fb3 "\nCe message MIME en plusieurs parties contient une notification d'\201\303\201\251tat de distribution.\nSi vous voyez ce texte, il est possible que votre client de courrier ne puisse pas\nlire les messages MIME for"..., size2=1856, startpos=2013, range=45, regs=0x8320268, stop=2058) at regex.c:4328 ## Instance 3 (gdb) xbacktrace "re-search-forward" "rmail-clear-headers" "rmail-reformat-message" "rmail-show-message" "rmail-summary-goto-msg" "rmail-summary-delete-forward" "call-interactively" (gdb) bt #0 0x081660e5 in re_match_2_internal (bufp=0x832907c, string1=0x410f0d43 "Date: Sun, 24 Apr 2005 03:26:04 +0300\nFrom: \"Melba Andrade\" \nSubject: Agenda for 2005: ReManufactured toner market\nTo: Decklin \nMIME-version: 1.0\nX-Ma"..., size1=0, string2=0x410f0d43 "Date: Sun, 24 Apr 2005 03:26:04 +0300\nFrom: \"Melba Andrade\" \nSubject: Agenda for 2005: ReManufactured toner market\nTo: Decklin \nMIME-version: 1.0\nX-Ma"..., size2=557, pos=156, regs=0x8320268, stop=0) at regex.c:5631 #1 0x08164102 in re_search_2 (bufp=0x832907c, str1=0x410f0d43 "Date: Sun, 24 Apr 2005 03:26:04 +0300\nFrom: \"Melba Andrade\" \nSubject: Agenda for 2005: ReManufactured toner market\nTo: Decklin \nMIME-version: 1.0\nX-Ma"..., size1=0, str2=0x410f0d43 "Date: Sun, 24 Apr 2005 03:26:04 +0300\nFrom: \"Melba Andrade\" \nSubject: Agenda for 2005: ReManufactured toner market\nTo: Decklin \nMIME-version: 1.0\nX-Ma"..., size2=557, startpos=156, range=401, regs=0x8320268, stop=557) at regex.c:4328 -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc