From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50209 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: spam.el is a bit aggressive loading/saving spam-stat data Date: Thu, 20 Feb 2003 13:22:04 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045765461 30943 80.91.224.249 (20 Feb 2003 18:24:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 18:24:21 +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 18lvMn-00082N-00 for ; Thu, 20 Feb 2003 19:24:18 +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 18lvKx-0002td-00; Thu, 20 Feb 2003 12:22:24 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 20 Feb 2003 12:23:23 -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 MAA23773 for ; Thu, 20 Feb 2003 12:23:12 -0600 (CST) Original-Received: (qmail 10809 invoked by alias); 20 Feb 2003 18:22:07 -0000 Original-Received: (qmail 10804 invoked from network); 20 Feb 2003 18:22:07 -0000 Original-Received: from pacific-carrier-annex.mit.edu (18.7.21.83) by 66.230.238.6 with SMTP; 20 Feb 2003 18:22:07 -0000 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id NAA06590 for ; Thu, 20 Feb 2003 13:22:06 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id NAA11275; Thu, 20 Feb 2003 13:22:06 -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 NAA15057; Thu, 20 Feb 2003 13:22:05 -0500 (EST) Original-To: ding@gnus.org 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:50209 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50209 spam.el with spam-stat seems to work fairly well for me (certainly, as well as ifile ever did). The one thing I was hoping for out of it, though, was that since the scoring information lived with the Emacs process, I wouldn't take a performance hit for reading and parsing a 500K text file for every incoming message. The code in spam.el seems to be on the aggressive side loading and saving, though: spam-split, which is called for every message, calls (spam-stat-load), and both of the spam-stat-register functions end by calling (spam-stat-save). 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. Thanks, -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell