From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49260 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: Wed, 15 Jan 2003 12:27:38 -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: <4n1y3eqq5x.fsf@koz.bwh.harvard.edu> References: <4n4r8c5091.fsf@lockgroove.bwh.harvard.edu> <4n8yxozqss.fsf_-_@lockgroove.bwh.harvard.edu> <84znq4w5yr.fsf@lucy.is.informatik.uni-duisburg.de> <4nel7f1y42.fsf@lockgroove.bwh.harvard.edu> <84y95n4gab.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 1042651649 29388 80.91.224.249 (15 Jan 2003 17:27:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2003 17:27:29 +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 18YrK3-0007dq-00 for ; Wed, 15 Jan 2003 18:27:27 +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 18YrKY-00067z-00; Wed, 15 Jan 2003 11:27:58 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 15 Jan 2003 11:28:54 -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 LAA09078 for ; Wed, 15 Jan 2003 11:28:40 -0600 (CST) Original-Received: (qmail 15317 invoked by alias); 15 Jan 2003 17:27:39 -0000 Original-Received: (qmail 15312 invoked from network); 15 Jan 2003 17:27:39 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 15 Jan 2003 17:27:39 -0000 Original-Received: from koz.bwh.harvard.edu (koz [134.174.9.110]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h0FHRcW28031; Wed, 15 Jan 2003 12:27:38 -0500 (EST) Original-Received: (from tzz@localhost) by koz.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h0FHRcN02324; Wed, 15 Jan 2003 12:27:38 -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: <84y95n4gab.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de's message of "Tue, 14 Jan 2003 21:39:40 +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:49260 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49260 On Tue, 14 Jan 2003, kai.grossjohann@uni-duisburg.de wrote: > Ted Zlatanov writes: > >> That's exactly how spam.el operates now, except for bogofilter - >> the whole article is passed to the spam/ham processor as a string. > > Your wording "as a string" sounds as if buffer-string or > buffer-substring is involved. > > What I meant is call-process-region... The article is transferred between functions as a string currently, but passed through call-process-region to the child process. I'm working on making the parameter-passing less string-bound and more oriented towards buffer reuse. This is my first mid-size Emacs Lisp project, so bear with me as I learn to use buffers better. > (I suspect that string processing in Emacs is slower than doing it > with text in buffers.) Probably, by a small margin (we're working with one article at a time anyway). The only extra penalty is that an article buffer is copied into a string, and that string is copied into a temporary buffer. Could this be a problem with large messages in general? Should I set a size limit on a message and only process up to that point with ifile/bogofilter/etc.? Ted