Gnus development mailing list
 help / color / mirror / Atom feed
From: Jan Vroonhof <vroonhof@math.ethz.ch>
Subject: Re: Not running expiry when I exit a group
Date: 07 Apr 1997 19:34:00 +0200	[thread overview]
Message-ID: <byvi5yohyv.fsf@math.ethz.ch> (raw)
In-Reply-To: Hrvoje Niksic's message of 07 Apr 1997 17:54:33 +0200

Hrvoje Niksic <hniksic@srce.hr> writes:

> > I think that the only reason that total-expire needs to loop that way
> > is because the articles are not already marked as expirable.  The loop
> > is simply to determine which articles are expirable.
> 
> Yes, but this thread started with an assertion (hopefully true) that
> even in Elisp a thousand or so iterations shouldn't take too long.

It depends on what is iterated, which again depends on the back end.
For me (using nnfolder:xemacs-beta ) the slowness comes from the way
article seeking is implemented. As I posted before it does the
equivalent of

(setq bufje <xemacs-beta buffer>)
(progn
   (setq i 3000)
   (save-excursion
     (set-buffer bufje)
     (while (< 0 i)
       (setq i (+ i -1))
       (goto-char (point-min))
       (search-forward "X-Gnus-Article-Number: 3451"))))

3000 * searching 1.5MB is slow... There is no optimization for the
fact that the messages are consecutive.


It should just check all messages one for one (maybe stopping if it
found one that is too new) and intersect the result with the set of
non-read messages.

Jan


  reply	other threads:[~1997-04-07 17:34 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-04  8:32 Jason L Tibbitts III
1997-04-04 12:53 ` Hrvoje Niksic
1997-04-04 13:09   ` Jan Vroonhof
1997-04-04 19:07     ` Jan Vroonhof
1997-04-04 15:18   ` Christopher Davis
1997-04-04 20:25     ` Sudish Joseph
1997-04-05 18:01       ` Christopher Davis
1997-04-04 13:08 ` Kai Grossjohann
1997-04-04 22:02   ` Jason L Tibbitts III
1997-04-04 13:23 ` David S. Goldberg
1997-04-04 13:40 ` Justin Sheehy
1997-04-04 18:17 ` Dewey M. Sasser
1997-04-04 19:16   ` Steinar Bang
1997-04-04 21:26     ` David Moore
1997-04-06 16:55       ` Steinar Bang
1997-04-07  8:15       ` Kai Grossjohann
1997-04-07 13:27         ` Justin Sheehy
1997-04-07 13:56           ` Kai Grossjohann
1997-04-07 15:54           ` Hrvoje Niksic
1997-04-07 17:34             ` Jan Vroonhof [this message]
1997-04-07 14:15         ` David Moore
1997-04-07 17:45           ` Christopher Davis
     [not found]     ` <r9q7mii1kkf.fsf@teapotdome.cs.washington.edu>
1997-04-06 16:59       ` Steinar Bang
1997-04-04 22:32   ` Jason L Tibbitts III
1997-04-05  7:21   ` Hrvoje Niksic
1997-04-05  8:24     ` Jason L Tibbitts III
1997-04-07  8:49 ` Wesley Hardaker
1997-04-19 15:46   ` Steinar Bang
1997-04-22 15:44     ` Brad Howes

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=byvi5yohyv.fsf@math.ethz.ch \
    --to=vroonhof@math.ethz.ch \
    /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).