Thread View: news.software.nntp
4 messages
4 total messages
Started by Jerry Aguirre
Wed, 24 Jan 1996 00:00
Re: Compression (Was: Suggested good "reject article" size?)
Author: Jerry Aguirre
Date: Wed, 24 Jan 1996 00:00
Date: Wed, 24 Jan 1996 00:00
12 lines
1255 bytes
1255 bytes
In article <DLEAu0.3pr@clarinet.com> brad@clarinet.com (Brad Templeton) writes: > >Compress only the body? But headers compress really well, particularly if >you write a compressor with some knowledge of how to compress them. I am wondering if the answer to software compression is to have a socket library that negotiates compression. That way it would be transparent to NNTP. Also other uses, reading and even non-NNTP uses, could make use of it. This seems like a much more general solution than just compressing a few articles.
Re: Compression (Was: Suggested good "reject article" size?)
Author: Mark Delany
Date: Fri, 26 Jan 1996 00:00
Date: Fri, 26 Jan 1996 00:00
34 lines
2224 bytes
2224 bytes
jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes: >In article <DLEAu0.3pr@clarinet.com> brad@clarinet.com (Brad Templeton) writes: >> >>Compress only the body? But headers compress really well, particularly if >>you write a compressor with some knowledge of how to compress them. >I am wondering if the answer to software compression is to have a socket >library that negotiates compression. That way it would be transparent >to NNTP. Also other uses, reading and even non-NNTP uses, could make use >of it. This seems like a much more general solution than just compressing >a few articles. Whilst it is true that a compressed-socket library might be of general use, compressing and decompressing at each hop seems a bit of a CPU load. Furthermore you get no automatic disk-space saving as the article is decompressed automagically by the library at each hop. Compressing the body (and perhaps the header) has the general benefit that compressing/decompressing only occurs at the originating site and the reading site (where the reading site may well often be the users PC, with CPU to burn). All those intermediate sites benefit from reduced bandwidth and disk-space requirements with no additional CPU load. There are certainly compressing algs around that are CPU-expensive to compress and CPU-cheap to decompress. That category of compressor strikes me as sensible for news, what with one compress and 4-gazillion decompresses. Regards.
Re: Compression (Was: Suggested good "reject article" size?)
Author: Jerry Aguirre
Date: Mon, 29 Jan 1996 00:00
Date: Mon, 29 Jan 1996 00:00
21 lines
1838 bytes
1838 bytes
In article <4e82gd$cf2@bushwire.mira.net.au> markd@mira.net.au (Mark Delany) writes: >Whilst it is true that a compressed-socket library might be of general >use, compressing and decompressing at each hop seems a bit of a CPU >load. Furthermore you get no automatic disk-space saving as the >article is decompressed automagically by the library at each hop. If you tried to pass the article along already compressed you would have the problem of updating the "Path: " header. Under any compression scheme I am familiar with that would mean de-dompression, modification of the Path header, and then recompression. So at the very least this scheme would require keeping the path header uncompressed. Starts to get messy. I am not sure how people can make these statements about the cost of CPU and disk. The prices of both have been plumeting. It is not clear that every feed would want to do compression. If there is sufficient bandwidth available then there is no need to compress. We are only talking about a subset of feeds trying to squeeze extra groups thru a low bandwidth connection.
Re: Compression (Was: Suggested good "reject article" size?)
Author: Heiko W.Rupp
Date: Wed, 31 Jan 1996 00:00
Date: Wed, 31 Jan 1996 00:00
48 lines
2672 bytes
2672 bytes
In article <4ej6i1$l85@olivea.ATC.Olivetti.Com>, Jerry Aguirre wrote: >In article <4e82gd$cf2@bushwire.mira.net.au> markd@mira.net.au (Mark Delany) wri >If you tried to pass the article along already compressed you would have >the problem of updating the "Path: " header. Under any compression scheme >I am familiar with that would mean de-dompression, modification of the A guy a U Stuttgart (framstag@rus.uni-stuttgart.de) wrote ``sendfile''- an application to do asynchronous file transfer. He did a good job on compression and restart of aborted transfers. Perhaps someone could look at this. After that we define a new command ``xcihave'' withe following: xcihave <id> <u-siz> <c-siz> <date> whith id : Message-ID, u-siz: uncompressed size, c-siz: compressed size and date: posting date. if remote wants the article , we send an uncompressed header along with a compressed body with sizeof(header)+sizeof(compressed body)==c-siz and sizeof(header)+sizeof(uncompressed body)== u-siz (as it is the normal size now). So the news system gets the headers it needs and can modify them as it wishes and you have less to transfer with the compressed body. You should send u-siz and c-siz because of: - finding transmission errors - allowing the remote to reject huge articles Also the date in some encoding should be send to allow the remote to reject old articles before actually transferring them. For the compressor: the algorithm could be an external one as only nnrpd needs access to the body, but for servers that have many readers this would mean that many gzips would be spawned. Perhaps the decompressor has to be built in into nnrpd. I guess here one has to add some options a la ``mode reader compress'' which indicates that the newsreader itself is capable of doing decom- pression of the body and that this can be send compressed. -- Heiko W.Rupp hwr@pilhhuhn.de INN FAQ can be found in ftp://ftp.xlink.net/pub/news/docs/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads