Gnus development mailing list
 help / color / mirror / Atom feed
From: Asymptotically Approaching Relaxation <feoh@cosmic.com>
Cc: ding@gnus.org
Subject: M-x gnus-filter-mail-at-warp-10 (was: Re: Pre-Processed maiil splitting under Gnus?)
Date: 12 Jan 1999 12:00:35 -0500	[thread overview]
Message-ID: <ubg19gpgss.fsf_-_@magrathea.cosmic.com> (raw)
In-Reply-To: Hrvoje Niksic's message of "12 Jan 1999 17:38:21 +0100"

Hrvoje Niksic <hniksic@srce.hr> writes:

> Kai.Grossjohann@CS.Uni-Dortmund.DE writes:
> 
> > Asymptotically Approaching Relaxation <feoh@cosmic.com> writes:
> > 
> >   > I'm seeing a total performance turnaround once I re-wrote my .gnus
> >   > file and minimized the length and complexity of the regexes I'm
> >   > filtering on.
> > 
> > Ah.  Why didn't I think of this?  Since the Day of the
> > Posixification of Regexes, regex matching has been rather slower for
> > a number of regexes; and I'm not sure whether the fact that they're
> > posixly correct now should be considered a Good Thing...
> 
> Strange.  Two remarks, though (none of which is meant to argue with
> you):
> 
> 1) As demonstrated by Tom Lord, GNU regex (which both Emacsen use) is
>    still not POSIX.
> 
> 2) Why are there, at least in XEmacs, two sets of functions, posix-
>    regexp functions, and "normal" regexp functions?  Also, the
>    internal code has various posix-p flags that apparently specify
>    whether POSIX behaviour is desired.  I though the reason for
>    duplicate functionality was to gain speed in the non-POSIX (the
>    more usual) case.


Hrrm.  I'm not sure whether or not XEmacs' regexps Posixness or lack
thereof is the determining faactor here.  I suspect a dash of clue and 
a *MUCH* less complex string to parse per each filter are the cause.

Here's the first bits of my nnmail-split-methods, old and new:

OLD: <Note: There are several syntactically legal but obviously broken
      expressions here, this didn't help in any case :)>

(setq nnmail-split-methods
	'(("mail.imagine" ".*owner-imagine@MAELSTROM\.STJOHNS\.EDU")
	("mail.mesa" "Return-Path:.*mesa.*.BR.*")
	("mail.kaffe" "Sender:.*kaffe@w3\.org")
	("mail.0xdeadbeef" ".*0xdeadbeef@substance\.abuse\.blackdown\.org")
	("mail.0xdeadbeef" "To:.*0xdeadbeef@substance.abuse.blackdown.org")
	("mail.linux-kernel" "linux-kernel@vger\.rutgers\.edu")
	("mail.linux-smp" "linux-smp@vger\.rutgers\.edu")
	("mail.linux-net" "linux-net@vger\.rutgers\.edu")
	("mail.linux-gcc" "linux-gcc@vger\.rutgers\.edu")
	("mail.linux-svgalib" "linux-svgalib@vger\.rutgers\.edu")
	("mail.linux-tape" "linux-tape@vger\.rutgers\.edu")
	("mail.linux-scsi" "linux-scsi@vger\.rutgers\.edu")

...


NEW: 
(setq nnmail-split-methods
	("mail.imagine" "owner-imagine@")
	("mail.0xdeadbeef" "0xdeadbeef@")
	("mail.gnus" "ding@gnus\.org")
	("mail.gimp" "gimp-.+@")
	("mail.hwg-languages" "hwg-languages@")
	("mail.hwg-critique" "hwg-critique@")
	("mail.hwg-software" "hwg-software@")
	("mail.squeak" "squeak@cs\.uiuc\.edu")
	("mail.boston-pm" "boston-pm@")
	("mail.perldl" "perldl@")
	("mail.freshmeat" "freshmeat-news@")

...

You get the idea.

To at least somewhat quantify my performance boost, a mail spool of
approx. 100 messages used to take on the order of a minute plus some
slop.  The same spool now filters in a little under 3 seconds :)

Yay.  I don't have to mess with procmail :)

-Chris
(I personally still favor pre versus post processing, but the pain is
gone so I'll move on to the next egregious wound and call it a win :)
____________________________________________________________________
|Chris Patti|ICQ#16333120|feoh@cosmic.com|Home #:(617)625-3194|JAPH|
|"I have opposable thumbs, and I can buy a rifle.  I don't need to |
| run from anything." -Todd Finney				   |


  reply	other threads:[~1999-01-12 17:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <feoh@cosmic.com>
1999-01-11 22:08 ` Pre-Processed maiil splitting under Gnus? Asymptotically Approaching Relaxation
1999-01-11 23:51   ` Richard Coleman
1999-01-12  7:00     ` Asymptotically Approaching Relaxation
1999-01-15  0:53     ` using multiple Summary buffer formats Alfred J Correira
1999-01-15 10:23       ` Kai.Grossjohann
1999-01-15 10:35         ` Lee Willis
1999-01-15 11:13           ` Kai.Grossjohann
     [not found]             ` <lzww2o21ez.fsf@landlord.gbdirect.co.uk>
     [not found]               ` <vaf7luon2dv.fsf@ramses.cs.uni-dortmund.de>
1999-01-15 12:34                 ` Kai.Grossjohann
1999-01-15 13:04                   ` Lee Willis
1999-01-15 14:27                     ` Karl Kleinpaste
1999-01-19 14:54                       ` Jack Vinson
1999-01-19 15:15                         ` Lee Willis
     [not found]   ` <m3iuedcuua.fsf@peorth.gweep.net>
1999-01-12  7:57     ` Pre-Processed maiil splitting under Gnus? Asymptotically Approaching Relaxation
1999-01-12 16:02       ` Kai.Grossjohann
1999-01-12 16:38         ` Hrvoje Niksic
1999-01-12 17:00           ` Asymptotically Approaching Relaxation [this message]
1999-01-12 17:35             ` M-x gnus-filter-mail-at-warp-10 (was: Re: Pre-Processed maiil splitting under Gnus?) Kai.Grossjohann
1999-01-12 18:42               ` Asymptotically Approaching Relaxation
1999-01-13 22:35                 ` Kai.Grossjohann
1999-01-12 20:49             ` M-x gnus-filter-mail-at-warp-10 (was: " Jari Aalto+mail.procmail
1999-01-13 22:32               ` Kai.Grossjohann
1999-01-13 23:21                 ` Hrvoje Niksic
1999-01-12 17:21           ` Pre-Processed maiil splitting under Gnus? Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ubg19gpgss.fsf_-_@magrathea.cosmic.com \
    --to=feoh@cosmic.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).