From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50642 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el is a bit aggressive loading/saving spam-stat data Date: Fri, 07 Mar 2003 09:55:10 -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: <4nadg7446p.fsf@surf.bwh.harvard.edu> References: <4nd6ll3bus.fsf@lockgroove.bwh.harvard.edu> <4nk7ft1hqj.fsf@lockgroove.bwh.harvard.edu> <874r6xtccq.fsf@emacswiki.org> <4nisv91h2t.fsf@chubby.bwh.harvard.edu> <4nel5u3frk.fsf@chubby.bwh.harvard.edu> <4nisuw5wsm.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047048943 552 80.91.224.249 (7 Mar 2003 14:55:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 14:55:43 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Fri Mar 07 15:55:38 2003 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 18rJG6-00008L-00 for ; Fri, 07 Mar 2003 15:55:38 +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 18rJFz-00042d-00; Fri, 07 Mar 2003 08:55:31 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 07 Mar 2003 08:56:29 -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 IAA09181 for ; Fri, 7 Mar 2003 08:56:16 -0600 (CST) Original-Received: (qmail 32096 invoked by alias); 7 Mar 2003 14:55:12 -0000 Original-Received: (qmail 32091 invoked from network); 7 Mar 2003 14:55:12 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 7 Mar 2003 14:55:12 -0000 Original-Received: from surf.bwh.harvard.edu (surf [134.174.9.37]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h27EtAj18830 for ; Fri, 7 Mar 2003 09:55:10 -0500 (EST) Original-Received: (from tzz@localhost) by surf.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h27EtAO02213; Fri, 7 Mar 2003 09:55:10 -0500 (EST) Original-To: ding@gnus.org 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: ding@gnus.org In-Reply-To: (Bill White's message of "Fri, 07 Mar 2003 08:27:04 -0600") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (usg-unix-v) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50642 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50642 On Fri, 07 Mar 2003, billw@wolfram.com wrote: > It takes roughly 20-30 seconds to load my spam-stat file. Is this a > reasonable duration, or am I doing something wrong? It's far too > long to wait at each new mail retrieval. Alex Schroeder, the spam-stat.el maintainer, might be able to answer. Your stat file may be simply too large, and I don't think Alex has written stats expiration code. For large files like the stats database, even with expiration there may be too much data, especially over NFS. It would be nice if spam-stat.el could use a persistent connection to a SQL database, or a local database file (Berkeley DB, for instance). As far as the SQL goes, I can write a simple Perl daemon that maintains a connection to a database table and understands the basic commands spam-stat.el needs (basically just read word stats/store word stats). I don't know if there's something within Emacs that could help, so we don't have to have an external utility. > Would it be reasonable to load the spam-stat file only when gnus > first starts, then save it only when quitting gnus or at some other > rare event during which I'm not waiting eagerly for something? You could remove spam-stat-maybe-load from gnus-get-top-new-news-hook, it's in gnus-startup-hook already if you have set spam-use-stat when loading spam.el. Ted