From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50242 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el is a bit aggressive loading/saving spam-stat data Date: Fri, 21 Feb 2003 15:25:44 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: 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 1045859191 16833 80.91.224.249 (21 Feb 2003 20:26:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Feb 2003 20:26: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 18mJka-0004NE-00 for ; Fri, 21 Feb 2003 21:26:28 +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 18mJkE-0004qn-00; Fri, 21 Feb 2003 14:26:06 -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:27:04 -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 OAA27544 for ; Fri, 21 Feb 2003 14:26:52 -0600 (CST) Original-Received: (qmail 62917 invoked by alias); 21 Feb 2003 20:25:50 -0000 Original-Received: (qmail 62912 invoked from network); 21 Feb 2003 20:25:49 -0000 Original-Received: from fort-point-station.mit.edu (18.7.7.76) by 66.230.238.6 with SMTP; 21 Feb 2003 20:25:49 -0000 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id PAA25223 for ; Fri, 21 Feb 2003 15:25:48 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.9.2/8.9.2) with ESMTP id PAA22261; Fri, 21 Feb 2003 15:25:48 -0500 (EST) Original-Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id PAA06296; Fri, 21 Feb 2003 15:25:45 -0500 (EST) Original-To: ding@gnus.org In-Reply-To: <4nd6ll3bus.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Fri, 21 Feb 2003 10:14:03 -0500") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) XEmacs/21.4 (Artificial Intelligence) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50242 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50242 Ted Zlatanov writes: > On Thu, 20 Feb 2003, dmaze@MIT.EDU wrote: >> Is it straightforward to change this so that (spam-stat-load) >> happens once when Gnus starts up, and then (spam-stat-save) is >> called, say, along with everything else when I press 's' from the >> group buffer? I'd think this would noticably improve splitting >> performance for me. > > 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. > 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. -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell