From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54956 Path: main.gmane.org!not-for-mail From: Danny Siu Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el: exiting groups is really really slow Date: Wed, 26 Nov 2003 00:24:11 -0800 Organization: Adobe Systems Incorporated Sender: ding-owner@lists.math.uh.edu Message-ID: References: <4ny8u43vk3.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1069835122 30456 80.91.224.253 (26 Nov 2003 08:25:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2003 08:25:22 +0000 (UTC) Original-X-From: ding-owner+M3496@lists.math.uh.edu Wed Nov 26 09:25:19 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AOuz9-00033Z-00 for ; Wed, 26 Nov 2003 09:25:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AOuya-0001MF-00; Wed, 26 Nov 2003 02:24:44 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AOuyU-0001MA-00 for ding@lists.math.uh.edu; Wed, 26 Nov 2003 02:24:38 -0600 Original-Received: from smtp-relay-8.adobe.com (smtp-relay-8.adobe.com [192.150.22.8]) by justine.libertine.org (Postfix) with ESMTP id 4F2533A005F for ; Wed, 26 Nov 2003 02:24:37 -0600 (CST) Original-Received: from inner-relay-3.corp.adobe.com (inner-relay-3 [153.32.251.51]) by smtp-relay-8.adobe.com (8.12.10/8.12.10) with ESMTP id hAQ8OIZS029874 for ; Wed, 26 Nov 2003 00:24:23 -0800 (PST) Original-Received: from mailsjtest (mailsjtest.corp.adobe.com [153.32.1.139]) by inner-relay-3.corp.adobe.com (8.12.9/8.12.9) with ESMTP id hAQ8OIGl006772 for ; Wed, 26 Nov 2003 00:24:18 -0800 (PST) Original-Received: from GIGI.corp.adobe.com ([130.248.176.31]) by mailsjtest.corp.adobe.com (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTP id <0HOY005FCA159Y@mailsjtest.corp.adobe.com> for ding@gnus.org; Wed, 26 Nov 2003 00:24:43 -0800 (PST) X-Face: fHBvLrQQW(GRz#RNTAN(,')p8NGv}{6dMh\:?%*D\+8hgkiA_dub1@\,Y"r5'a8C(8e~cGG(WFTU\OlAqI[B?V7m'ZGkquvZ/d k~E"A"@WK;0mLF&\%W1kIC]O"z#/>YNUefE1%5/NUX;ml]@$nW;05Z9uZ/CqTz]A)+`1ROuF~||pG= k>Zi@hE- In-reply-to: <4ny8u43vk3.fsf@lockgroove.bwh.harvard.edu> Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org X-Mailer: Gnus v5.10.3 User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) X-Location: San Jose X-Emacs: 21.3.50.1 Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54956 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54956 Ted, On related subject about spam-stat-save: I have the following in my gnus-exit-gnus-hook (let ((coding-system-for-write 'emacs-mule)) (spam-stat-save)) Without that, Emacs would complain about the coding system when saving the my spam stat file. Now that spam-stat-save is done at spam.el level, I think it should allow user to set whatever coding system for his spam stat file rather then relying the default coding system. Ted Zlatanov writes: Ted> On Tue, 25 Nov 2003, dmaze@mit.edu wrote: >> Having taken the mega spam.el patch via Gnus CVS, exiting groups is now >> really really slow. I think this is because spam-stat-load and >> spam-stat-save are pretty expensive operations for me (involves writing >> reasonably large files over the network), and >> spam-stat-register-{ham,spam}-routine insists on doing both. Why can't >> the spam-stat database be kept in memory and saved when .newsrc.eld is >> saved? Ted> I thought loading & saving was not a big deal but you're right, it's Ted> a pain. Plus, the hooks were already being installed properly, so Ted> what I did was totally retarded. I've taken out the save/load code, Ted> thanks! Ted> Ted -- Danny Dick-Fung Siu mailto:dsiu@adobe.com Advanced Technology Group @ Adobe Systems Incorporated