🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86135

Best way to handle ranges with gaps?

#86135
From: Doc O'Leary
Date: Sun, 23 Mar 2014 16:16
18 lines
2440 bytes
I'm looking into writing my own newsreader and one thing I'm looking to 
improve is how, at least for the clients I've used, fetching headers 
really seems to bog down as cross-posts get marked read.  For example, 
the overview of 100K articles might take 15 seconds for a contiguous 
block, but over 5 minutes if it has to make multiple requests for 
smaller ranges.

I'm wondering if anyone has worked out a good formula or rule of thumb 
on the trade-offs involved in time, bandwidth, server load, etc.  A gap 
of a single article doesn't seem like enough to justify the overhead of 
making multiple requests (e.g. 1,3,5 vs 1-5), but maybe it does for gaps 
5 or 10.  Does anyone have a good idea where the sweet spot is, or a 
good way to calculate it (other than direct sampling)?  Thanks.

-- 
iPhone apps that matter:    http://appstore.subsume.com/
My personal UDP list: 127.0.0.1, localhost, googlegroups.com, teranews.com,
    and probably your server, too.
Technical Details
Message-ID: <droleary-8D6C6D.11161223032014@news.eternal-september.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <droleary-8D6C6D.11161223032014@news.eternal-september.org>
Subject: Best way to handle ranges with gaps?
Date: Sun, 23 Mar 2014 11:16:12 -0500
From: Doc O'Leary <droleary@8usenet2013.subsume.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Subsume Technologies, Inc.
Lines: 18
Injection-Info: mx05.eternal-september.org;
 posting-host="faf2f63d449c382d96c1eebd3c09237b";
 logging-data="24777"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1/f3T7xQXXLtkXLRsrizv1raUydjc6Sugw="
User-Agent: MT-NewsWatcher/3.5.2 (Intel Mac OS X)
X-Face: $#H!e"|nzKjQyw4|fY.B5Bm<@R23q$d`,jgSi|dm+n1$|BPH(OusWU/J9KCeN
 F8u^pVGb<"'bFomP;3s/j3DJb,:m1f2HF#-s2&redF{g,v8(!T{O>XZ@t!;pB#t#t{xx
 ^he!Rfi=d&duIrV#ZhXn$Rw/mb`<\:M_:of,PZv`//Qp"tnnR%XVQ78<%"WQ9jS4xb"J
 o]wO>3=m@2QUr&`k5!I=v;*dQ*vN`t%+8NO[!`xSlU?Z7H%@e`5'u7=|~"S-,nlbNHP8
 &lj*)br3jev^/Lnup(4X:sF^.N3D0J.cfwhq]sD[!HMmw?~k:8bnp=v!ia'BtPgqgq#4
 _97Duo
Cancel-Lock: sha1:KSkbe1928tv/2DZCAhESv67LJcY=