Gnus development mailing list
 help / color / mirror / Atom feed
From: "François Pinard" <pinard@iro.umontreal.ca>
Subject: Re: Holes in article sequence
Date: 09 Jul 1999 13:25:52 -0400	[thread overview]
Message-ID: <oqyagppwf3.fsf@titan.progiciels-bpi.ca> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "09 Jul 1999 19:06:57 +0200"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Hrvoje Niksic <hniksic@srce.hr> writes:

> > Now, if you have a big hole in your article range -- e.g. your article
> > range is 128 - 12300 because you ticked article no. 128 -- total
> > expiry will stat tens of thousands of non-existant files every time 
> > you leave the group.  That tends to get a bit slow.

> One could speed things up by having the backend look at what articles
> exist in the group, and then iterate over that instead of the other
> way around.  That would be much, much quicker for groups with big
> "holes" in them.  It might be slower in other situations, though.

If this is the only problem with big holes, it would be worth moving
iterating the other way around, and forget hole problems forever :-).

If you fear that it could a bit slow, but are able to keep the old code as
well as the new, maybe you could let the number of articles decide which
method to use, or else, have some collaboration from the backend to tell
you when it is better to change methods.  Or maybe both: if the backend has
nothing to say, use some heuristic on the number of articles.  Of course, if
the other-way-around is not supported by the backend, just use the old way.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



  parent reply	other threads:[~1999-07-09 17:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-07  1:13 François Pinard
1999-07-07  2:27 ` Hrvoje Niksic
1999-07-07 17:49   ` Rob Browning
1999-07-09 17:06   ` Lars Magne Ingebrigtsen
1999-07-09 17:11     ` Kai.Grossjohann
1999-07-09 18:20       ` Lars Magne Ingebrigtsen
1999-07-09 17:25     ` François Pinard [this message]
1999-07-09 18:26       ` Lars Magne Ingebrigtsen
1999-07-09 22:34         ` Kai.Grossjohann
1999-07-11  9:03           ` Lars Magne Ingebrigtsen
1999-07-12  3:02         ` Hrvoje Niksic
1999-08-27 17:21           ` Lars Magne Ingebrigtsen
1999-08-28 17:55           ` Jan Vroonhof
     [not found]           ` <m3yaexdtre.fsf@quimb <byemgnx00v.fsf@bolzano.math.ethz.ch>
1999-09-25  6:45             ` Lars Magne Ingebrigtsen
1999-07-12 21:16         ` jonkv
1999-07-11 14:13   ` Hallvard B Furuseth

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=oqyagppwf3.fsf@titan.progiciels-bpi.ca \
    --to=pinard@iro.umontreal.ca \
    /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).