Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Why article numbers?
Date: Sat, 22 Feb 2003 16:43:37 -0500	[thread overview]
Message-ID: <m3lm08xa74.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <m3lm08hxm1.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Sat, 22 Feb 2003 21:24:54 +0100")

I think I should point out that Kai and I seem to be advocating
slightly different things.  Kai's suggestion, AIUI, is to use
Message-ID header fields as article IDs everywhere.  My suggestion is
to let backends decide how to identify articles, with the only
requirement being that identifiers should be eq if they are supposed
to identify the same article.  (This includes the possibility of
symbols whose names are Message-IDs, but does not require that.)

Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
> prj@po.cwru.edu (Paul Jarc) writes:
>> Don't ask for a particular number of articles.  Ask for "all unread
>> articles".
>
> That's not what the user asks for.  The user may ask for "the last
> 200 articles, whether read or unread", or "the last 5 read articles".

You're changing the question.  Originally you said:

>>> How many articles should you fetch if the user wants all unread
>>> articles?

If the user asks for "all unread articles", then Gnus can ask the
backend for "all unread articles".  If the user asks for "the last 200
articles, whether read or unread", then Gnus can ask the backend for
"the last 200 articles, whether read or unread".  If the user asks for
"the last 5 read articles", then Gnus can ask the backend for "the
last 5 read articles".

The point is that the work that benefits from knowing that article IDs
are integers does not have to be abandoned; it can simply be pushed
inside the backend.  So for backends that naturally use integers as
identifiers, there would just be a restructuring of the existing code,
with approximately zero change in performance.  Backends that have to
do extra work to assign numbers to articles would have the opportunity
to try using other types of objects as IDs, but if that strategy turns
out to be worse for whatever reason, then they can still go back to
using integers.

> "A lot of work" is an understatement

I won't argue with that.  It might even be so much work that it will
never happen, unfortunately.  But my claim is that it is possible, and
if done right, would not cause performance hits.


paul



  parent reply	other threads:[~2003-02-22 21:43 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 21:55 Kai Großjohann
2003-02-08 20:38 ` Lars Magne Ingebrigtsen
2003-02-08 23:44   ` Paul Jarc
2003-02-08 23:49     ` Lars Magne Ingebrigtsen
2003-02-09 14:59       ` Kai Großjohann
2003-02-10 18:40       ` Paul Jarc
2003-02-22 20:24         ` Lars Magne Ingebrigtsen
2003-02-22 21:11           ` Kai Großjohann
2003-02-22 21:24             ` Lars Magne Ingebrigtsen
2003-02-22 21:37               ` Kai Großjohann
2003-02-22 21:44                 ` Lars Magne Ingebrigtsen
2003-02-23  9:51                   ` Kai Großjohann
2003-02-22 22:33             ` Simon Josefsson
2003-02-23  9:52               ` Kai Großjohann
2003-02-23 11:04                 ` Simon Josefsson
2003-02-23 13:33                   ` Kai Großjohann
2003-02-23 16:56                     ` Simon Josefsson
2003-02-23 17:23                       ` Kai Großjohann
2003-02-23 11:34                 ` Lars Magne Ingebrigtsen
2003-02-23 16:56                 ` Michael Shields
2003-02-22 21:43           ` Paul Jarc [this message]
2003-02-23  5:03             ` Michael Shields
2003-02-23 10:28             ` Kai Großjohann
2003-02-23 11:38             ` 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=m3lm08xa74.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.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).