From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49216 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: requesting articles from a nnxyz backend: what's the fastest Date: Tue, 14 Jan 2003 11:42:53 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: <4nel7f1y42.fsf@lockgroove.bwh.harvard.edu> References: <4n4r8c5091.fsf@lockgroove.bwh.harvard.edu> <4n8yxozqss.fsf_-_@lockgroove.bwh.harvard.edu> <84znq4w5yr.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042562606 2542 80.91.224.249 (14 Jan 2003 16:43:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2003 16:43:26 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18YU9q-0000eO-00 for ; Tue, 14 Jan 2003 17:43:22 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18YU9u-0001UE-00; Tue, 14 Jan 2003 10:43:26 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 14 Jan 2003 10:44:21 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA05221 for ; Tue, 14 Jan 2003 10:44:08 -0600 (CST) Original-Received: (qmail 35196 invoked by alias); 14 Jan 2003 16:43:08 -0000 Original-Received: (qmail 35190 invoked from network); 14 Jan 2003 16:43:08 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 14 Jan 2003 16:43:08 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h0EGgrW05682; Tue, 14 Jan 2003 11:42:54 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h0EGgrB11726; Tue, 14 Jan 2003 11:42:53 -0500 (EST) Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann),?= ding@gnus.org In-Reply-To: <84znq4w5yr.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de's message of "Tue, 14 Jan 2003 08:22:52 +0100") User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49216 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49216 On Tue, 14 Jan 2003, kai.grossjohann@uni-duisburg.de wrote: > Ted Zlatanov writes: > >> I'd like to optimize spam/ham processing, which currently takes an >> article as a string out of the article buffer. This is slow, so >> I'd like to map an article number to a file when possible. > > I wonder if it is faster to fetch the article into a buffer and to > pipe it to the command? Would that work with the commands used by > spam.el? That's exactly how spam.el operates now, except for bogofilter - the whole article is passed to the spam/ham processor as a string. > If this is fast enough, it would avoid special-casing for > file-per-msg backends. I am sure it's faster to invoke ifile (for instance) once on a directory full of files, than it is to invoke ifile repeatedly on each file in that directory, fetching that file as an article through Gnus. That's why I asked if there was an "approved" way to map articles to files for backends that support it. Ted