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: Tue, 22 Mar 2005 15:42:34 +0000 (UTC) Message-ID: References: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1111506304 1231 80.91.229.2 (22 Mar 2005 15:45:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2005 15:45:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 22 16:45:03 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDlYt-0006sj-9m for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 16:44:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDlqC-00072P-PV for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 11:02:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDloC-0006rg-2t for emacs-devel@gnu.org; Tue, 22 Mar 2005 11:00:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDlnt-0006hb-OM for emacs-devel@gnu.org; Tue, 22 Mar 2005 11:00:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDlnp-0006hB-VF for emacs-devel@gnu.org; Tue, 22 Mar 2005 11:00:21 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDlWn-0008D3-Ly; Tue, 22 Mar 2005 10:42:46 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Tue, 22 Mar 2005 15:42:34 +0000 (UTC) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Tue, 22 Mar 2005 08:56:56 -0500) 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:34968 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34968 re_match_2_internal ... is the inner function that does regexp matching. Could you please show a backtrace of the inner 5 or 10 C stack frames that call it? Then we will see which C primitive was called. Also, by looking at the args to that C primitive, you can see what the regexp is. Is this what you mean? (gdb) bt #0 re_match_2_internal (bufp=0x8329a5c, string1=0x42078bab "Subject: wicked drug)s to keep you going\nFrom: \"Terrance Hampton\" \nDate: Tue, 22 Mar 2005 11:29:57 +0000\nTo: ackahn@rattlesnake.com\n\nWelcome!\n\nIts time to stop wasting money o"..., size1=0, string2=0x42078bab "Subject: wicked drug)s to keep you going\nFrom: \"Terrance Hampton\" \nDate: Tue, 22 Mar 2005 11:29:57 +0000\nTo: ackahn@rattlesnake.com\n\nWelcome!\n\nIts time to stop wasting money o"..., size2=797, pos=6, regs=0x8320ea8, stop=0) at regex.c:4835 #1 0x08163f82 in re_search_2 (bufp=0x8329a5c, str1=0x42078bab "Subject: wicked drug)s to keep you going\nFrom: \"Terrance Hampton\" \nDate: Tue, 22 Mar 2005 11:29:57 +0000\nTo: ackahn@rattlesnake.com\n\nWelcome!\n\nIts time to stop wasting money o"..., size1=0, str2=0x42078bab "Subject: wicked drug)s to keep you going\nFrom: \"Terrance Hampton\" \nDate: Tue, 22 Mar 2005 11:29:57 +0000\nTo: ackahn@rattlesnake.com\n\nWelcome!\n\nIts time to stop wasting money o"..., size2=797, startpos=6, range=791, regs=0x8320ea8, stop=797) at regex.c:4328 #2 0x0815a265 in search_buffer (string=151866368, pos=6316886, pos_byte=0, lim=6317683, lim_byte=6318289, n=1, RE=1, trt=143145540, inverse_trt=143150548, posix=1107790763) at search.c:1138 #3 0x08159a69 in search_command (string=144968947, bound=137576249, noerror=137576297, count=1107790763, direction=1, RE=1, posix=0) at search.c:939 #4 0x0815c07e in Fre_search_forward (regexp=1107790763, bound=1107790763, noerror=1107790763, count=1107790763) at search.c:2160 I am not sure what to do next. I tried this: (gdb) c Continuing. Breakpoint 6, Fre_search_forward (regexp=137779403, bound=137779403, noerror=137779403, count=137779403) at search.c:2160 2160 return search_command (regexp, bound, noerror, count, 1, 1, 0); (gdb) bt #0 Fre_search_forward (regexp=137779403, bound=137779403, noerror=137779403, count=137779403) at search.c:2160 And (gdb) f 0 #0 Fre_search_forward (regexp=137779403, bound=137779403, noerror=137779403, count=137779403) at search.c:2160 2160 return search_command (regexp, bound, noerror, count, 1, 1, 0); (gdb) list 2155 See also the functions `match-beginning', `match-end', `match-string', 2156 and `replace-match'. */) 2157 (regexp, bound, noerror, count) 2158 Lisp_Object regexp, bound, noerror, count; 2159 { 2160 return search_command (regexp, bound, noerror, count, 1, 1, 0); 2161 } 2162 2163 DEFUN ("posix-search-backward", Fposix_search_backward, Sposix_search_backward, 1, 4, 2164 "sPosix search backward: ", (gdb) info f Stack level 0, frame at 0xbfffddd0: eip = 0x815c041 in Fre_search_forward (search.c:2160); saved eip 0x8182499 called by frame at 0xbfffde40 source language c. Arglist at 0xbfffddc8, args: regexp=137779403, bound=137779403, noerror=137779403, count=137779403 Locals at 0xbfffddc8, Previous frame's sp is 0xbfffddd0 Saved registers: ebp at 0xbfffddc8, eip at 0xbfffddcc (gdb) info args regexp = 137779403 bound = 137779403 noerror = 137779403 count = 137779403 I also tried printing the value of `regexp=137779403' and got (gdb) p $3 = 137779403 I do not know what to try next. What should I do? -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc