Article View: news.software.readers
Article #156856Re: Attn XNews Author: XNews Storage & Load efficiency
From: Murray Peterson
Date: Sun, 10 Oct 2004 09:39
Date: Sun, 10 Oct 2004 09:39
101 lines
5668 bytes
5668 bytes
Jack Frost <person@server.com.edu.org> wrote in news:Xns957E2B86691B5JFXN@207.217.125.201: > 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. But below, you are telling me that some of the headers *are* being discarded. You can't have it both ways. >>> 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. That makes sense, and would account for some memory savings (but not all). > 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. If it's not all there, then PG is discarding headers. Which would also explain why the discrepancy in memory usage. >> 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? I am saying that a DB does not reduce the size of stored data, and in fact, almost always results in an increase in data storage. We use databases for many reasons, but data size reduction is not one of those reasons. > 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, > [snip] And since the headers are *all* text strings, the only way to reduce their size is to compress them or discard some of them. There isn't any "clever" third way. > [snip] > 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. Not true in my case, and probably not true for most Xnews users. I have filters that work on all of the header data at one time or another -- I need that information for them to work. > 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. Memory usage can't be explained away that way -- if the text is displayed on your screen, then the memory must be allocated to store it. This is true for any application. However, if PG is throwing away some headers (references, Xref, etc), then of course it will need less memory. -- Murray Peterson Email: murray_peterson@shaw.ca (remove underscore) URL: http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID:
<Xns957E255C56E12farkle@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!cyclone1.gnilink.net!gnilink.net!chi1.usenetserver.com!news.usenetserver.com!pd7cy2so!shaw.ca!pd7tw2no.POSTED!53ab2750!not-for-mailReferences:
<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> <Xns957E2B86691B5JFXN@207.217.125.201>Show Full Headers
Complete Article Headers
Message-ID: <Xns957E255C56E12farkle@24.71.223.159> Subject: Re: Attn XNews Author: XNews Storage & Load efficiency Date: Sun, 10 Oct 2004 09:39:22 GMT From: Murray Peterson <mwp@home.com.invalid> 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> <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!cyclone1.gnilink.net!gnilink.net!chi1.usenetserver.com!news.usenetserver.com!pd7cy2so!shaw.ca!pd7tw2no.POSTED!53ab2750!not-for-mail X-Trace-PostClient-IP: 68.145.154.18 Newsgroups: news.software.readers Organization: None User-Agent: Xnews/06.02.16 Lines: 101 NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse@shaw.ca X-Trace: pd7tw2no 1097401162 24.71.223.147 (Sun, 10 Oct 2004 03:39:22 MDT) NNTP-Posting-Date: Sun, 10 Oct 2004 03:39:22 MDT