[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 <[EMAIL PROTECTED]>\nSubject: 
=?ISO-8859-15?Q?Notification_d'=E9tat_de_la_distribution?=\nTo: [EMAIL 
PROTECTED]: 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 <[EMAIL PROTECTED]>\nSubject: 
=?ISO-8859-15?Q?Notification_d'=E9tat_de_la_distribution?=\nTo: [EMAIL 
PROTECTED]: 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\" <[EMAIL 
PROTECTED]>\nSubject: Agenda for 2005: ReManufactured toner market\nTo: Decklin 
<[EMAIL PROTECTED]>\nMIME-version: 1.0\nX-Ma"..., size1=0, string2=0x410f0d43 
"Date: Sun, 24 Apr 2005 03:26:04 +0300\nFrom: \"Melba Andrade\" <[EMAIL 
PROTECTED]>\nSubject: Agenda for 2005: ReManufactured toner market\nTo: Decklin 
<[EMAIL PROTECTED]>\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\" <[EMAIL PROTECTED]>\nSubject: 
Agenda for 2005: ReManufactured toner market\nTo: Decklin <[EMAIL 
PROTECTED]>\nMIME-version: 1.0\nX-Ma"..., size1=0, str2=0x410f0d43 "Date: Sun, 
24 Apr 2005 03:26:04 +0300\nFrom: \"Melba Andrade\" <[EMAIL 
PROTECTED]>\nSubject: Agenda for 2005: ReManufactured toner market\nTo: Decklin 
<[EMAIL PROTECTED]>\nMIME-version: 1.0\nX-Ma"..., size2=557, startpos=156, 
range=401, regs=0x8320268, stop=557) at regex.c:4328

--
    Robert J. Chassell
    [EMAIL PROTECTED]                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to