From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50644 Path: main.gmane.org!not-for-mail From: Bill White Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el is a bit aggressive loading/saving spam-stat data Date: Fri, 07 Mar 2003 09:13:23 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: 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 1047050023 5844 80.91.224.249 (7 Mar 2003 15:13:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 15:13:43 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Fri Mar 07 16:13:41 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 18rJXZ-0001Vl-00 for ; Fri, 07 Mar 2003 16:13:41 +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 18rJXc-0004Gy-00; Fri, 07 Mar 2003 09:13:44 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 07 Mar 2003 09:14:43 -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 JAA09247 for ; Fri, 7 Mar 2003 09:14:30 -0600 (CST) Original-Received: (qmail 32752 invoked by alias); 7 Mar 2003 15:13:26 -0000 Original-Received: (qmail 32747 invoked from network); 7 Mar 2003 15:13:26 -0000 Original-Received: from wri-dns0.wolfram.com (HELO wolfram.com) (140.177.205.10) by 66.230.238.6 with SMTP; 7 Mar 2003 15:13:26 -0000 Original-Received: from billwlx.wolfram.com.wolfram.com (dmz5.wolfram.com [140.177.205.1]) by wolfram.com (8.11.2/8.11.2) with ESMTP id h27FDNY02116 for ; Fri, 7 Mar 2003 09:13:24 -0600 Original-To: ding@gnus.org X-Phone: 217-398-0700 x 234 X-Fax: 217-398-0747 In-Reply-To: (Niklas Morberg's message of "Fri, 07 Mar 2003 15:38:01 +0100") X-Liturgical-Date: Commemoration: Saints Perpetua and Felicity, martyrs X-Face: $f^q=3W-VRc;w9na5Y.c-Jvu)M";y1O184tHjf@PP26MzCi.}7S^GP;QlJ$A3.PH|-`aQZ! d,*2d|f2z"9y%}r'$nhAO(9h`dv>,Mp\H6jf8AbuG>EZ,{u:cksL#NwCBoF<\;{QO+p32'(1*r"f-l baaB}uoEkv(o864LM@sH User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50644 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50644 On Fri Mar 07 2003 at 08:38, Niklas Morberg said: > Bill White writes: > >> It takes roughly 20-30 seconds to load my spam-stat file. >> Is this a reasonable duration, or am I doing something >> wrong? > > It takes ~5 seconds for me. But that does not necessarily mean that > there's anything wrong with your setup. I guess the more mails you > receive and use for training, the bigger the spam-stat file gets. I get around 100-200 spams a day, which, amazingly, is entirely manageable with the new spam-aware gnus. Meanwhile, File size: (nth 7 (file-attributes spam-stat-file)) => 928737 Number of words: (hash-table-count spam-stat) => 60066 Reduce table size: (spam-stat-reduce-size) Save table: (spam-stat-save) File size: (nth 7 (file-attributes spam-stat-file)) => 261781 Number of words: (hash-table-count spam-stat) => 17144 1 - Perhaps the table size reduction could be automated in a hook at some daily gnus event (I quit gnus each day when I leave the office, so that would be a reasonable time for me). I'll try this today: (add-hook 'gnus-exit-gnus-hook 'spam-stat-reduce-size 'spam-stat-save) 2 - Would it help to byte-compile spam-stat-file? Cheers - bw -- Bill White . billw@wolfram.com . http://members.wri.com/billw "No ma'am, we're musicians."