🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15039

Re: NEWNEWS Command

#15039
From: Andrew Gierth
Date: Thu, 13 Feb 1997 00:00
66 lines
3108 bytes
>>>>> "Egil" == Egil Kvaleberg <egilk@sn.no> writes:

 Egil> But you are right: Reading by Message-ID is slower too, as is
 Egil> reading the articles by HEAD first, then BODY.

 Egil> Reading in the straight ahead manner (full article by number)
 Egil> will definitely give the best overall performance as well as
 Egil> minimum server load. Even compared to methods that involve
 Egil> automated spam kill mechanisms in the transfer process, since
 Egil> these all involve doing things that hurt performance and
 Egil> increases server load. [...]

I've been taking a look at what suck-3.3.2 does, with a view to possibly
diddling in it to make it faster (or even rewriting it from scratch), if
I can do it in a way that doesn't make it *too* server-unfriendly.

What it currently does is:

  for each group
    issue "GROUP name"
    check article high number against config file
    if any new articles
      issue "XHDR Message-ID range" for the new articles
      add all received message-ids to a list
  remove duplicate message-ids
  remove message-ids already in local history file
  if killfile
    for each message-id
      issue "HEAD <message-id>"
      if article not killed
        issue "BODY <message-id>"
  else
    for each message-id
      issue "ARTICLE <message-id>"

What I was thinking of doing was:

  for each group
    issue "GROUP name"
    check article high number against config file
    if any new articles
      issue "XOVER range" for the new articles
      add all received message-ids and article numbers to a list,
        filtering on size, From, etc. if desired
  remove duplicate message-ids
  remove message-ids already in local history file
  for each group
    issue "GROUP name"
    for each article number in list
      issue "ARTICLE nnnn"
    (doing this loop in a pipeline to eliminate turnaround latency)

So, doing the actual article retrieval should be as efficient as possible.
The XOVER involves transferring more data than the XHDR Message-ID, but 
allows much more efficient filtering (especially on article size).

Any comments? Is this likely to be much of an improvement?
    
(Also, I don't like suck's arrangement of writing separate files for the
downloaded articles.)

-- 
Andrew.

Technical Details
Message-ID: <87enekef7v.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5doh1j$en4$1@jair.pressenter.com> <E5GFKo.Goz@spcuna.spc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <87enekef7v.fsf@erlenstar.demon.co.uk>
Subject: Re: NEWNEWS Command
Date: Thu, 13 Feb 1997 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <5doh1j$en4$1@jair.pressenter.com> <E5GFKo.Goz@spcuna.spc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 218561094
X-Geek: (V3.1)
X-NNTP-Posting-Host: erlenstar.demon.co.uk
 GCS/IT/CC d- s: + a- C++++$ UABHVC++++$ P---@ L E+++ W(--) N+++ !o K+ w---
X-Mayan-Date: Long count = 12.19.3.16.8; tzolkin = 10 Lamat; haab = 11 Pax
Organization: disorganised
X-Attribution: AG
Newsgroups: news.software.nntp