From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62330 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.gnus.general Subject: Re: No Gnus v0.4 / emacs-cvs terribly slowly operating on large nnfolders Date: Tue, 21 Mar 2006 08:36:38 +0900 Message-ID: <877j6og03d.fsf@catnip.gol.com> References: <878xr6klq1.fsf@denkblock.local> <87ek0xzm9c.fsf@rimspace.net> <87u09tjvdk.fsf@denkblock.local> <871wwxz73o.fsf@rimspace.net> <87mzfl87eu.fsf@denkblock.local> <87acbku6yh.fsf@pacem.orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142897850 24991 80.91.229.2 (20 Mar 2006 23:37:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2006 23:37:30 +0000 (UTC) Original-X-From: ding-owner+m10857@lists.math.uh.edu Tue Mar 21 00:37:28 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FLTwB-0005m8-M0 for ding-account@gmane.org; Tue, 21 Mar 2006 00:37:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FLTw5-0004wH-00; Mon, 20 Mar 2006 17:37:17 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FLTvt-0004wC-00 for ding@lists.math.uh.edu; Mon, 20 Mar 2006 17:37:05 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FLTvr-0000zo-Mr for ding@lists.math.uh.edu; Mon, 20 Mar 2006 17:37:05 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FLTvq-0007uv-00 for ; Tue, 21 Mar 2006 00:37:02 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FLTvg-0005i0-KW for ding@gnus.org; Tue, 21 Mar 2006 00:36:52 +0100 Original-Received: from 203-216-99-017.dsl.gol.ne.jp ([203.216.99.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Mar 2006 00:36:52 +0100 Original-Received: from miles by 203-216-99-017.dsl.gol.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Mar 2006 00:36:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203-216-99-017.dsl.gol.ne.jp System-Type: i686-pc-linux-gnu Cancel-Lock: sha1:O8z4RSVWitoEp3MzwM3OWseR3UE= X-Spam-Score: -2.4 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62330 Archived-At: Romain Francoise writes: > - (while (and (search-forward marker nil t) > - (re-search-forward number nil t)) > - (let ((newnum (string-to-number (match-string 0)))) > + (let ((head (concat "\n" nnfolder-article-marker "\\([0-9]+\\)")) > + numbers) > + (while (re-search-forward head nil t) > + (let ((newnum (string-to-number (match-string 1)))) The replacement doesn't seem to do exactly the same thing: in the original code, it starts searching for [0-9]+ after finding the article marker, but there can be intervening characters (including newlines). [I dunno whether the format of the means that the two should actually be immediately adjacent,] Also you probably want to regexp-quote nnfolder-article-marker. -Miles -- `Suppose Korea goes to the World Cup final against Japan and wins,' Moon said. `All the past could be forgiven.' [NYT]