🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #156851

Re: Attn XNews Author: XNews Storage & Load efficiency

#156851
From: Jack Frost
Date: Sun, 10 Oct 2004 09:16
76 lines
5166 bytes
Murray Peterson <mwp@home.com.invalid> wrote in
news:Xns957E1D9F16289farkle@24.71.223.159: 

> Jack Frost <person@server.com.edu.org> wrote in
> news:Xns957E2311B7445JFXN@207.217.125.201: 
> 
>> 
>> 1. PG is discarding some information, most likely things most people
>> are not interested in anyway.  From a quick comparison of several
>> small groups, I don't see PG discarding headers, so my guess is PG
>> selects only the most necessary information to save instead of
>> storing everything. 
> 
> That's just another phrase for discarding headers.

NO it's NOT.  Discarding headers would be to completely throw it out and 
not showing it at all.  PG does NOT do that.  It discards PART of each 
header, not an ENTIRE header.

>> 2. PG is condensing information (all parts of a file could be stored 
>> under one entry, for example)
> 
> I'm not sure I understand you here.  Xnews doesn't split things up --
> all headers are kept together.

In a Multi-part binary post, PG could be (I'm just guessing here) just 
storing ONE subject line, ONE sender, ONE date, and whatever else, then 
the list of message ID, instead of storing ALL headers of all parts, like 
XNews.

>> 3. During header retrieval, PG DOES create a XOVER file that DOES get
>> quite big (comparable in size to the header file of XNews).  However,
>> once the actual header download, the sorting, matching... etc are
>> done, PG reverts to its smaller file size (a msg ID file, a bin file,
>> whatever they store is not plain-text).  Loading the content of those
>> files, i.e. opening a group in PG takes very little time (compared to
>> XNews) and still, all the information are there, including what's new
>> and what's not.
> 
> How about associated info from other XOVER headers -- is that all
> still there?  (xref, references, messageID)

I doubt it.  It's hard to say with absolute certainty.  I would have to 
hack into PG's file format and convert it from HEX (or however they store 
it) to text.

> 
>> 4. Using a DB to stores offline headers explains the efficiency 
>> difference between PG and XNews.  While XNews has to parse text and
>> do all the displaying, sorting and threading, PG could use DB
>> features such as view, query and some simple manipulation to display
>> what it needs, with much more efficiency.
> 
> That can't be true.  Headers are textual in nature -- that's how they
> are defined.  If PG is "condensing" them, then it must either be
> compressing the text, or discarding info.  Since good compression
> algorithms take large amounts of CPU, I expect that PG is throwing out
> things.  A database engine isn't going to help with memory usage or
> performance. 

OH I beg to differ.  Most data in general are alphanumerical by nature 
anyway, no matter what you look at.  Examples: employee records, student 
records, even binaries files are ultimately just numbers.  So if you're 
saying a DB engine doesn't make a difference, why bother with them, why 
don't we just store them all in plain-text?  DB is a way to efficiently 
manage and store large records of pre-defined structure (in our case, 
headers).  Granted, it's no doubt PG must be doing some clever condensing 
of info.  I doubt it's compression, since the guy either must develop his 
own compression engine or license one.  Since PG is free and pretty 
light-weight in size and CPU usage, it's probably not.  Like you said, 
very likely PG is selectively throwing things out.  That might not be a 
bad thing.  I doubt that most of us are interested in the majority of the 
information contained in a header anyway.  My guess is that because XNews 
has to parse plain-text files, things get slow and memory get used.  In 
programming terms, a lot of string and string concatenation (amoung other 
things.  Not the best way to process large amount of data.
Technical Details
Message-ID: <Xns957E2B86691B5JFXN@207.217.125.201>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!0b3b810c!not-for-mail
References: <Xns957DCA37F1A17JFXN@207.69.189.191> <Xns957DD765E61BBfarkle@24.71.223.159> <Xns957DEF4BBDE21JFXN@207.69.189.191> <Xns957E6D02A9A4farkle@24.71.223.159> <Xns957E2311B7445JFXN@207.217.125.201> <Xns957E1D9F16289farkle@24.71.223.159>

Show Full Headers
Complete Article Headers
Message-ID: <Xns957E2B86691B5JFXN@207.217.125.201>
Subject: Re: Attn XNews Author: XNews Storage & Load efficiency
Date: Sun, 10 Oct 2004 09:16:46 GMT
From: Jack Frost <person@server.com.edu.org>
References: <Xns957DCA37F1A17JFXN@207.69.189.191> <Xns957DD765E61BBfarkle@24.71.223.159> <Xns957DEF4BBDE21JFXN@207.69.189.191> <Xns957E6D02A9A4farkle@24.71.223.159> <Xns957E2311B7445JFXN@207.217.125.201> <Xns957E1D9F16289farkle@24.71.223.159>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!0b3b810c!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/06.08.25
Lines: 76
NNTP-Posting-Host: 69.81.119.202
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread3.news.pas.earthlink.net 1097399806 69.81.119.202 (Sun,
NNTP-Posting-Date: Sun, 10 Oct 2004 02:16:46 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net