From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50243 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, 21 Feb 2003 15:49:56 -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: <4nk7ft1hqj.fsf@lockgroove.bwh.harvard.edu> References: <4nd6ll3bus.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 1045860811 25405 80.91.224.249 (21 Feb 2003 20:53:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Feb 2003 20:53:31 +0000 (UTC) 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 18mK8A-00067S-00 for ; Fri, 21 Feb 2003 21:50:50 +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 18mK7a-00052p-00; Fri, 21 Feb 2003 14:50:14 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 21 Feb 2003 14:51:11 -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 OAA27611 for ; Fri, 21 Feb 2003 14:50:59 -0600 (CST) Original-Received: (qmail 63631 invoked by alias); 21 Feb 2003 20:49:57 -0000 Original-Received: (qmail 63626 invoked from network); 21 Feb 2003 20:49:57 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 21 Feb 2003 20:49:57 -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 h1LKnuj08269 for ; Fri, 21 Feb 2003 15:49:56 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h1LKnuK23476; Fri, 21 Feb 2003 15:49:56 -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: (David Z Maze's message of "Fri, 21 Feb 2003 15:25:44 -0500") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50243 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50243 On Fri, 21 Feb 2003, dmaze@MIT.EDU wrote: > Ted Zlatanov writes: >> How about spam-stat-load on summary entry, and spam-stat-save on >> summary exit if spam-use-stat is on? > > spam-stat-load needs to be called before splitting happens. My > understanding is that, once it's loaded, it doesn't need to be > reloaded or saved until Emacs exits. You're right, I was not thinking. >> That seems like the right place to put those hooks, and you won't >> have to hit 's' unnecessarily. > > The same code gets called from gnus-group-save-newsrc and > gnus-group-exit, right? If spam-stat-save really does need to be > called often, then calling it on summary exit makes sense, but > otherwise saving it at the same time as .newsrc.eld would minimize > (possibly slow) disk access. Well, it doesn't need to be called often, and it could be added to the save-newsrc hook. I just thought most people would want their stats up-to-date on disk, but I can see why it would be good to minimize disk access. Maybe we could allow both behaviors? What do you think about a new variable spam-stat-save-frequency with choices "often" and "with-newsrc"? I guess we don't need "like a maniac" as an option :) Ted