Gnus development mailing list
 help / color / mirror / Atom feed
From: David Moore <dmoore@UCSD.EDU>
Subject: Re: Idea for turbo expiry
Date: 24 Dec 1996 10:51:29 -0800	[thread overview]
Message-ID: <rvd8vzsrm6.fsf@sdnp5.ucsd.edu> (raw)
In-Reply-To: Jason L Tibbitts III's message of 24 Dec 1996 11:22:59 -0600

Jason L Tibbitts III <tibbs@hpc.uh.edu> writes:

> I dipped into the expiry code to see why it was taking so much CPU every
> time I exited an nnml group.  It looks to me like it builds a list of all
> expirable articles and stats each of them in turn to see if they're old
> enough.

	Yeah, it does this if you use total-expire.

> My idea is to make the assumption that articles come in chronologically, so
> that if an article has a lower number, it it older.  Thus you can run the
> list of articles in numerical order and bail after you find one that is too
> young to expire.  I figure (judging from how much mail I save in some of my
> active folders) that this would cut my expiry time by a factor of 100 or
> more.

	I was thinking a good thing to do would be to get a list of all
of the files in the directory and intersect that list with the read
list, and only remove things in the intersection.  This wins big over
both the default and the start at low numbers approaches when the total
number of articles in the group is in the 10 thousands and you've only
got say 100 messages actually sitting there.

	But in any case the method used for total-expire can be improved
upon.

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    |


  reply	other threads:[~1996-12-24 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-24 17:22 Jason L Tibbitts III
1996-12-24 18:51 ` David Moore [this message]
1996-12-24 20:12   ` Jason L Tibbitts III
1997-01-02 15:09 ` 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=rvd8vzsrm6.fsf@sdnp5.ucsd.edu \
    --to=dmoore@ucsd.edu \
    /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).