Thread View: news.software.nntp
12 messages
12 total messages
Started by Julien ÉLIE
Mon, 16 Nov 2015 19:07
About compression ratio
Author: Julien ÉLIE
Date: Mon, 16 Nov 2015 19:07
Date: Mon, 16 Nov 2015 19:07
390 lines
14676 bytes
14676 bytes
Hi all, I've just tested various compression levels for a set of NNTP commands and answers. In summary: * 1-line commands and answers have a greater size when compressed; * the RFC should not recommend level 0 when no compression is desired but level 1; * for articles having base64 attachments, the compression ratio is 75% so it is still desirable to compress them; * answers to LIST (of all sorts like ACTIVE, ACTIVE.TIMES, COUNTS, NEWSGROUPS, and even MODERATORS or OVERVIEW.FMT), LISTGROUP, HDR, OVER and NEWNEWS commands are worth compressing. Here are the numbers: CAPABILITIES\r\n ---------------- Uncompressed: 14 bytes Compressed with level 0: 24 bytes (171%) Compressed with level 1: 20 bytes (142%) Compressed with level 2: 20 bytes (142%) Compressed with level 3: 20 bytes (142%) Compressed with level 4: 20 bytes (142%) Compressed with level 5: 20 bytes (142%) Compressed with level 6: 20 bytes (142%) Compressed with level 7: 20 bytes (142%) Compressed with level 8: 20 bytes (142%) Compressed with level 9: 20 bytes (142%) DATE\r\n -------- Uncompressed: 6 bytes Compressed with level 0: 16 bytes (266%) Compressed with level 1: 12 bytes (200%) Compressed with level 2: 12 bytes (200%) Compressed with level 3: 12 bytes (200%) Compressed with level 4: 12 bytes (200%) Compressed with level 5: 12 bytes (200%) Compressed with level 6: 12 bytes (200%) Compressed with level 7: 12 bytes (200%) Compressed with level 8: 12 bytes (200%) Compressed with level 9: 12 bytes (200%) 111 20151116090621\r\n ---------------------- Uncompressed: 20 bytes Compressed with level 0: 30 bytes (150%) Compressed with level 1: 26 bytes (130%) Compressed with level 2: 26 bytes (130%) Compressed with level 3: 26 bytes (130%) Compressed with level 4: 26 bytes (130%) Compressed with level 5: 26 bytes (130%) Compressed with level 6: 26 bytes (130%) Compressed with level 7: 26 bytes (130%) Compressed with level 8: 26 bytes (130%) Compressed with level 9: 26 bytes (130%) GROUP news.software.nntp\r\n ---------------------------- Uncompressed: 26 bytes Compressed with level 0: 36 bytes (138%) Compressed with level 1: 32 bytes (123%) Compressed with level 2: 32 bytes (123%) Compressed with level 3: 32 bytes (123%) Compressed with level 4: 32 bytes (123%) Compressed with level 5: 32 bytes (123%) Compressed with level 6: 32 bytes (123%) Compressed with level 7: 32 bytes (123%) Compressed with level 8: 32 bytes (123%) Compressed with level 9: 32 bytes (123%) 211 8603 1 12856 news.software.nntp\r\n --------------------------------------- Uncompressed: 37 bytes Compressed with level 0: 47 bytes (127%) Compressed with level 1: 43 bytes (116%) Compressed with level 2: 43 bytes (116%) Compressed with level 3: 43 bytes (116%) Compressed with level 4: 43 bytes (116%) Compressed with level 5: 43 bytes (116%) Compressed with level 6: 43 bytes (116%) Compressed with level 7: 43 bytes (116%) Compressed with level 8: 43 bytes (116%) Compressed with level 9: 43 bytes (116%) NEXT\r\n -------- Uncompressed: 6 bytes Compressed with level 0: 16 bytes (266%) Compressed with level 1: 12 bytes (200%) Compressed with level 2: 12 bytes (200%) Compressed with level 3: 12 bytes (200%) Compressed with level 4: 12 bytes (200%) Compressed with level 5: 12 bytes (200%) Compressed with level 6: 12 bytes (200%) Compressed with level 7: 12 bytes (200%) Compressed with level 8: 12 bytes (200%) Compressed with level 9: 12 bytes (200%) 223 12856 <AABWSMt+DGcAAEfe.A1.flnews@WStation4.micha.freeshell.org> Article retrieved; request text separately\r\n ------------------------------------------------------------------------------------------------------------------- Uncompressed: 113 bytes Compressed with level 0: 123 bytes (108%) Compressed with level 1: 115 bytes (101%) Compressed with level 2: 115 bytes (101%) Compressed with level 3: 115 bytes (101%) Compressed with level 4: 115 bytes (101%) Compressed with level 5: 115 bytes (101%) Compressed with level 6: 115 bytes (101%) Compressed with level 7: 115 bytes (101%) Compressed with level 8: 115 bytes (101%) Compressed with level 9: 115 bytes (101%) ARTICLE <AABWSMt+DGcAAEfe.A1.flnews@WStation4.micha.freeshell.org>\r\n ---------------------------------------------------------------------- Uncompressed: 68 bytes Compressed with level 0: 78 bytes (114%) Compressed with level 1: 74 bytes (108%) Compressed with level 2: 74 bytes (108%) Compressed with level 3: 74 bytes (108%) Compressed with level 4: 74 bytes (108%) Compressed with level 5: 74 bytes (108%) Compressed with level 6: 74 bytes (108%) Compressed with level 7: 74 bytes (108%) Compressed with level 8: 74 bytes (108%) Compressed with level 9: 74 bytes (108%) Processing article-answer ------------------------- Uncompressed: 2803 bytes Compressed with level 0: 2813 bytes (100%) Compressed with level 1: 1591 bytes (56%) Compressed with level 2: 1587 bytes (56%) Compressed with level 3: 1586 bytes (56%) Compressed with level 4: 1564 bytes (55%) Compressed with level 5: 1562 bytes (55%) Compressed with level 6: 1562 bytes (55%) Compressed with level 7: 1562 bytes (55%) Compressed with level 8: 1562 bytes (55%) Compressed with level 9: 1562 bytes (55%) Processing article-base64-attachment-answer ------------------------------------------- Uncompressed: 13710605 bytes Compressed with level 0: 13712720 bytes (100%) Compressed with level 1: 10532602 bytes (76%) Compressed with level 2: 10530299 bytes (76%) Compressed with level 3: 10529281 bytes (76%) Compressed with level 4: 10359065 bytes (75%) Compressed with level 5: 10358692 bytes (75%) Compressed with level 6: 10358046 bytes (75%) Compressed with level 7: 10357747 bytes (75%) Compressed with level 8: 10357235 bytes (75%) Compressed with level 9: 10357010 bytes (75%) Processing capabilities-answer ------------------------------ Uncompressed: 336 bytes Compressed with level 0: 346 bytes (102%) Compressed with level 1: 244 bytes (72%) Compressed with level 2: 244 bytes (72%) Compressed with level 3: 244 bytes (72%) Compressed with level 4: 244 bytes (72%) Compressed with level 5: 244 bytes (72%) Compressed with level 6: 244 bytes (72%) Compressed with level 7: 244 bytes (72%) Compressed with level 8: 244 bytes (72%) Compressed with level 9: 244 bytes (72%) Processing hdr-subject-answer-8604-articles ------------------------------------------- Uncompressed: 429640 bytes Compressed with level 0: 429715 bytes (100%) Compressed with level 1: 74666 bytes (17%) Compressed with level 2: 73811 bytes (17%) Compressed with level 3: 73865 bytes (17%) Compressed with level 4: 68546 bytes (15%) Compressed with level 5: 63964 bytes (14%) Compressed with level 6: 63603 bytes (14%) Compressed with level 7: 62960 bytes (14%) Compressed with level 8: 62469 bytes (14%) Compressed with level 9: 62467 bytes (14%) Processing help-answer ---------------------- Uncompressed: 928 bytes Compressed with level 0: 938 bytes (101%) Compressed with level 1: 500 bytes (53%) Compressed with level 2: 494 bytes (53%) Compressed with level 3: 494 bytes (53%) Compressed with level 4: 484 bytes (52%) Compressed with level 5: 481 bytes (51%) Compressed with level 6: 481 bytes (51%) Compressed with level 7: 481 bytes (51%) Compressed with level 8: 481 bytes (51%) Compressed with level 9: 481 bytes (51%) Processing list-active-answer-29462-newsgroups ---------------------------------------------- Uncompressed: 1393931 bytes Compressed with level 0: 1394151 bytes (100%) Compressed with level 1: 394856 bytes (28%) Compressed with level 2: 377907 bytes (27%) Compressed with level 3: 370632 bytes (26%) Compressed with level 4: 335238 bytes (24%) Compressed with level 5: 326645 bytes (23%) Compressed with level 6: 323482 bytes (23%) Compressed with level 7: 320722 bytes (23%) Compressed with level 8: 316907 bytes (22%) Compressed with level 9: 314809 bytes (22%) Processing list-active.times-answer-13879-newsgroups ---------------------------------------------------- Uncompressed: 736059 bytes Compressed with level 0: 736179 bytes (100%) Compressed with level 1: 113922 bytes (15%) Compressed with level 2: 112682 bytes (15%) Compressed with level 3: 112042 bytes (15%) Compressed with level 4: 99918 bytes (13%) Compressed with level 5: 98914 bytes (13%) Compressed with level 6: 98834 bytes (13%) Compressed with level 7: 98806 bytes (13%) Compressed with level 8: 94183 bytes (12%) Compressed with level 9: 94183 bytes (12%) Processing list-counts-answer-29462-newsgroups ---------------------------------------------- Uncompressed: 1003654 bytes Compressed with level 0: 1003814 bytes (100%) Compressed with level 1: 349418 bytes (34%) Compressed with level 2: 342441 bytes (34%) Compressed with level 3: 336698 bytes (33%) Compressed with level 4: 311196 bytes (31%) Compressed with level 5: 303437 bytes (30%) Compressed with level 6: 302239 bytes (30%) Compressed with level 7: 300741 bytes (29%) Compressed with level 8: 300583 bytes (29%) Compressed with level 9: 300583 bytes (29%) Processing list-moderators-answer --------------------------------- Uncompressed: 335 bytes Compressed with level 0: 345 bytes (102%) Compressed with level 1: 197 bytes (58%) Compressed with level 2: 194 bytes (57%) Compressed with level 3: 191 bytes (57%) Compressed with level 4: 190 bytes (56%) Compressed with level 5: 190 bytes (56%) Compressed with level 6: 190 bytes (56%) Compressed with level 7: 190 bytes (56%) Compressed with level 8: 190 bytes (56%) Compressed with level 9: 190 bytes (56%) Processing list-newsgroups-answer-46026-newsgroups -------------------------------------------------- Uncompressed: 2564921 bytes Compressed with level 0: 2565321 bytes (100%) Compressed with level 1: 836486 bytes (32%) Compressed with level 2: 815978 bytes (31%) Compressed with level 3: 801596 bytes (31%) Compressed with level 4: 741846 bytes (28%) Compressed with level 5: 725255 bytes (28%) Compressed with level 6: 722740 bytes (28%) Compressed with level 7: 718912 bytes (28%) Compressed with level 8: 718244 bytes (28%) Compressed with level 9: 718244 bytes (28%) Processing list-overview.fmt-answer ----------------------------------- Uncompressed: 122 bytes Compressed with level 0: 132 bytes (108%) Compressed with level 1: 112 bytes (91%) Compressed with level 2: 112 bytes (91%) Compressed with level 3: 112 bytes (91%) Compressed with level 4: 112 bytes (91%) Compressed with level 5: 112 bytes (91%) Compressed with level 6: 112 bytes (91%) Compressed with level 7: 112 bytes (91%) Compressed with level 8: 112 bytes (91%) Compressed with level 9: 112 bytes (91%) Processing listgroup-answer-with-8605-article-numbers ----------------------------------------------------- Uncompressed: 53793 bytes Compressed with level 0: 53808 bytes (100%) Compressed with level 1: 20177 bytes (37%) Compressed with level 2: 18186 bytes (33%) Compressed with level 3: 17369 bytes (32%) Compressed with level 4: 20509 bytes (38%) Compressed with level 5: 20277 bytes (37%) Compressed with level 6: 20320 bytes (37%) Compressed with level 7: 20329 bytes (37%) Compressed with level 8: 20329 bytes (37%) Compressed with level 9: 20329 bytes (37%) Processing newnews-answer-11096-mid ----------------------------------- Uncompressed: 474178 bytes Compressed with level 0: 474258 bytes (100%) Compressed with level 1: 147513 bytes (31%) Compressed with level 2: 146515 bytes (30%) Compressed with level 3: 143855 bytes (30%) Compressed with level 4: 136598 bytes (28%) Compressed with level 5: 131718 bytes (27%) Compressed with level 6: 130759 bytes (27%) Compressed with level 7: 128550 bytes (27%) Compressed with level 8: 128067 bytes (27%) Compressed with level 9: 128067 bytes (27%) Processing over-answer-1-article -------------------------------- Uncompressed: 1110 bytes Compressed with level 0: 1120 bytes (100%) Compressed with level 1: 530 bytes (47%) Compressed with level 2: 529 bytes (47%) Compressed with level 3: 523 bytes (47%) Compressed with level 4: 524 bytes (47%) Compressed with level 5: 518 bytes (46%) Compressed with level 6: 518 bytes (46%) Compressed with level 7: 516 bytes (46%) Compressed with level 8: 516 bytes (46%) Compressed with level 9: 516 bytes (46%) Processing over-answer-8604-articles ------------------------------------ Uncompressed: 4860880 bytes Compressed with level 0: 4861630 bytes (100%) Compressed with level 1: 778648 bytes (16%) Compressed with level 2: 759093 bytes (15%) Compressed with level 3: 743074 bytes (15%) Compressed with level 4: 683428 bytes (14%) Compressed with level 5: 640402 bytes (13%) Compressed with level 6: 625390 bytes (12%) Compressed with level 7: 620066 bytes (12%) Compressed with level 8: 614138 bytes (12%) Compressed with level 9: 614047 bytes (12%) I hope it will help to better implement the COMPRESS command. -- Julien ÉLIE « Vbi solitudinem faciunt, pacem appellant. » (Galgagus de Tacite)
Re: About compression ratio
Author: Julien ÉLIE
Date: Mon, 16 Nov 2015 19:12
Date: Mon, 16 Nov 2015 19:12
128 lines
4496 bytes
4496 bytes
Hi all,
For those interested in testing themselves, here is the script I used.
The "samples/strings" file contains 1-line commands or answers (one per line). The other files are multi-line answers.
% tree
..
|-- deflate_compare.py
`-- samples
|-- article-answer
|-- article-base64-attachment-answer
|-- capabilities-answer
|-- hdr-subject-answer-8604-articles
|-- help-answer
|-- list-active-answer-29462-newsgroups
|-- list-active.times-answer-13879-newsgroups
|-- list-counts-answer-29462-newsgroups
|-- listgroup-answer-with-8605-article-numbers
|-- list-moderators-answer
|-- list-newsgroups-answer-46026-newsgroups
|-- list-overview.fmt-answer
|-- newnews-answer-11096-mid
|-- over-answer-1-article
|-- over-answer-8604-articles
`-- strings
1 directory, 17 files
#!/usr/bin/python
import glob
import os, os.path
import zlib
SAMPLES_DIR = "samples"
STRINGS_FILE = "strings"
STRINGS_PATH = os.path.join(SAMPLES_DIR, STRINGS_FILE)
METHOD = zlib.DEFLATED
WINDOW_SIZE = -15
MEMLEVEL = 9
# Z_DEFAULT_STRATEGY, Z_FILTERED, Z_HUFFMAN_ONLY
STRATEGY = zlib.Z_DEFAULT_STRATEGY
first = True
if os.path.isfile(STRINGS_PATH):
for line in file(STRINGS_PATH):
if not first:
print
print
else:
first = False
# Ensure the command ends with CRLF.
line = line.rstrip("\r\n")
print line + "\\r\\n"
print '-'*(len(line)+4)
print
line += "\r\n"
print "Uncompressed: %d bytes" % len(line)
# Compress the command.
for level in xrange(0, 10):
encoder = zlib.compressobj(level, METHOD, WINDOW_SIZE, \
MEMLEVEL, STRATEGY)
zdata = encoder.compress(line)
zdata += encoder.flush(zlib.Z_FULL_FLUSH)
print "Compressed with level %d: %d bytes (%d%%)" % \
(level, len(zdata), 100*len(zdata)/len(line))
else:
print "No file found with name %s" % STRINGS_FILE
first = False
for filename in sorted(os.listdir(SAMPLES_DIR)):
if filename == STRINGS_FILE:
continue
if not first:
print
print
else:
first = False
label = "Processing %s" % filename
print label
print '-'*len(label)
print
# Read the file and ensure every line ends with CRLF.
f = open(os.path.join(SAMPLES_DIR, filename), 'r')
lines = f.readlines()
data = []
flen = 0
for line in lines:
line = line.rstrip("\r\n") + "\r\n"
flen += len(line)
data.append(line)
f.close()
print "Uncompressed: %d bytes" % flen
# Compress the file.
for level in xrange(0, 10):
encoder = zlib.compressobj(level, METHOD, WINDOW_SIZE, \
MEMLEVEL, STRATEGY)
zdata = ''
for line in data:
zdata += encoder.compress(line)
zdata += encoder.flush(zlib.Z_FULL_FLUSH)
print "Compressed with level %d: %d bytes (%d%%)" % \
(level, len(zdata), 100*len(zdata)/flen)
--
Julien ÉLIE
« C'est comme chercher une aiguille dans du foin en bottes ! »
(Jolitorax)
Re: About compression ratio
Author: Ken Murchison
Date: Mon, 16 Nov 2015 21:05
Date: Mon, 16 Nov 2015 21:05
39 lines
2454 bytes
2454 bytes
On 11/16/2015 02:07 PM, Julien ÉLIE wrote: > Hi all, > > I've just tested various compression levels for a set of NNTP commands and answers. > > In summary: > * 1-line commands and answers have a greater size when compressed; This is certainly be true for short sessions such as your tests. I would expect the compression ratios to get a little better over time as the dictionary builds up and there is some repetition in the traffic, but I could be wrong. > * the RFC should not recommend level 0 when no compression is desired but level 1; The documentation clearly states: "0 gives no compression at all (the input data is simply copied a block at a time)". Even if there are an additional 4 bytes in the output, the receiver doesn't have to decode any of the bits, its a simple copy. I don't know why there are an extra 4 bytes. I would have to read RFC 1951 and the zlib docs further. > * for articles having base64 attachments, the compression ratio is 75% so it is still desirable to compress them; Good to know. > * answers to LIST (of all sorts like ACTIVE, ACTIVE.TIMES, COUNTS, NEWSGROUPS, and even MODERATORS or OVERVIEW.FMT), LISTGROUP, HDR, OVER and NEWNEWS commands are worth compressing. As expected. -- Kenneth Murchison Principal Systems Software Engineer Carnegie Mellon University
Re: About compression ratio
Author: Bo Lindbergh
Date: Tue, 17 Nov 2015 08:17
Date: Tue, 17 Nov 2015 08:17
13 lines
1351 bytes
1351 bytes
I wrote a program to examine the effects of the different flush options.
After each line of input, it flushes the deflation and then displays
a) the inflated output available after the flush
b) a summary line showing byte counts before deflation, after deflation,
and after inflation.
You can find it here:
http://www.stacken.kth.se/~blgl/deflatemeter.c.gz
/Bo Lindbergh
Re: About compression ratio
Author: Kevin Bowling
Date: Wed, 18 Nov 2015 18:21
Date: Wed, 18 Nov 2015 18:21
18 lines
1756 bytes
1756 bytes
On 11/16/15 12:07 PM, Julien ÉLIE wrote: > Hi all, > > I've just tested various compression levels for a set of NNTP commands and answers. > > In summary: > * 1-line commands and answers have a greater size when compressed; > * the RFC should not recommend level 0 when no compression is desired but level 1; > * for articles having base64 attachments, the compression ratio is 75% so it is still desirable to compress them; > * answers to LIST (of all sorts like ACTIVE, ACTIVE.TIMES, COUNTS, NEWSGROUPS, and even MODERATORS or OVERVIEW.FMT), LISTGROUP, HDR, OVER and NEWNEWS commands are worth compressing. Not directly related, but there is a huge win running inn on ZFS with lz4 block compression. Regards, Kevin
Re: About compression ratio
Author: Julien ÉLIE
Date: Wed, 18 Nov 2015 19:42
Date: Wed, 18 Nov 2015 19:42
34 lines
2272 bytes
2272 bytes
Hi Ken, >> In summary: >> * 1-line commands and answers have a greater size when compressed; > > This is certainly be true for short sessions such as your tests. I > would expect the compression ratios to get a little better over time as > the dictionary builds up and there is some repetition in the traffic, > but I could be wrong. I'll try to simulate that. >> * the RFC should not recommend level 0 when no compression is desired >> but level 1; > > The documentation clearly states: "0 gives no compression at all (the > input data is simply copied a block at a time)". Even if there are an > additional 4 bytes in the output, the receiver doesn't have to decode > any of the bits, its a simple copy. I don't know why there are an extra > 4 bytes. I would have to read RFC 1951 and the zlib docs further. According to http://www.bolet.org/~pornin/deflate-flush.html these additional bytes are the four-byte sequence 00 00 FF FF added after a flush. -- Julien ÉLIE « Exegi monumentum aere perennius. » (Horace)
Re: About compression ratio
Author: D. Stussy
Date: Fri, 20 Nov 2015 04:34
Date: Fri, 20 Nov 2015 04:34
41 lines
3249 bytes
3249 bytes
"Julien ÉLIE" wrote in message news:n2d9ha$41r$1@news.trigofacile.com... I've just tested various compression levels for a set of NNTP commands and answers. In summary: * 1-line commands and answers have a greater size when compressed; * the RFC should not recommend level 0 when no compression is desired but level 1; * for articles having base64 attachments, the compression ratio is 75% so it is still desirable to compress them; * answers to LIST (of all sorts like ACTIVE, ACTIVE.TIMES, COUNTS, NEWSGROUPS, and even MODERATORS or OVERVIEW.FMT), LISTGROUP, HDR, OVER and NEWNEWS commands are worth compressing. Here are the numbers: .... ============================== Although you proved it empirically, you've noted that short communications (less than 30 bytes) do not benefit from compression and should be sent uncompressed. Multiline "commands" (e.g. POST) and responses (e.g. article or list retrieval) do benefit. Therefore, what makes sense is to have some sort of result mechanism indicating that the result is compressed or that the input to be accepted may be compressed. For responses, this could be done with a different response code. For commands, command parameters shall indicate. At the TCP level, I note that there appear to be 4 reserved bits remaining. Perhaps someone (...) should write an RFC that steals one of these bits which will indicate that a packet is either uncompressed (0) or compressed at the application level (1), that the network transmitter can be signaled so to skip IPSEC IPCOMP processing, since compressing an already compressed sequence often yields no significant additional benefit. Of course, that is only an option when IKE processing indicates "use" and not "off" or "required" for IPCOMP. This way, an application can switch between compressed and uncompressed (without having to use a "null compression" method flag) on the fly per response and/or per packet and signal that response to higher protocols.
Re: About compression ratio
Author: Michael Baeuerle
Date: Fri, 20 Nov 2015 09:47
Date: Fri, 20 Nov 2015 09:47
38 lines
2604 bytes
2604 bytes
Julien ÉLIE wrote: > Ken Murchison wrote: > > Julien ÉLIE wrote: > > > > > > * the RFC should not recommend level 0 when no compression is desired > > > but level 1; > > > > The documentation clearly states: "0 gives no compression at all (the > > input data is simply copied a block at a time)". Even if there are an > > additional 4 bytes in the output, the receiver doesn't have to decode > > any of the bits, its a simple copy. I don't know why there are an extra > > 4 bytes. I would have to read RFC 1951 and the zlib docs further. > > According to > http://www.bolet.org/~pornin/deflate-flush.html > these additional bytes are the four-byte sequence 00 00 FF FF added > after a flush. | [Z_PARTIAL_FLUSH] | "will be removed, use Z_SYNC_FLUSH instead" (version 1.2.3 of zlib) | [...] | Note: since the partial flush is now part of the SSH standard, it will | probably be "reprecated" in the next zlib version. The code was not | meant to be removed anyway, but a more descriptive comment will be put | back. In the zlib 1.2.8 documentation I can see no word about 'Z_PARTIAL_FLUSH' still being deprecated. | For newer protocols, the sync flush is still recommended, | because it uses less bandwidth (provided that the trick of removing | the 00 00 FF FF sequence is applied) and is more resilient to stream | damage (thanks to the byte alignment feature). Looks like it would be a good idea to define the flush method that must be used in the new RFC.
Paris
Author: Avon Kerr
Date: Fri, 20 Nov 2015 20:20
Date: Fri, 20 Nov 2015 20:20
21 lines
1548 bytes
1548 bytes
On Mon, 16 Nov 2015 20:07:21 +0100, Julien ÉLIE wrote: > Hi all, Hi Julien I know this is off topic but I just wanted to reach out via this newsgroup to you and your fellow countrymen and women to express my sympathy and condolences regarding the recent terror attacks in your great country. You, your family, and the wider population of France have been in my thoughts and prayers in recent days. Best wishes from New Zealand. Paul -- Agency News | news.bbs.geek.nz
Re: Paris
Author: Julien ÉLIE
Date: Mon, 23 Nov 2015 21:35
Date: Mon, 23 Nov 2015 21:35
39 lines
2735 bytes
2735 bytes
Hi Paul, > I know this is off topic but I just wanted to reach out via this newsgroup > to you and your fellow countrymen and women to express my sympathy and > condolences regarding the recent terror attacks in your great country. > > You, your family, and the wider population of France have been in my > thoughts and prayers in recent days. > > Best wishes from New Zealand. That's pretty kind of you. Thanks a lot Paul! I bet that most of the people living near Paris was somehow affected by that tragedy, directly or indirectly knowing somebody hurt. I for one have the chance to have my family safe. But one colleague (I did not know personally) in my company was shot to death; a friend of a colleague (this time I know) also died, as well as a fellow-graduate. I also know a person working at the Bataclan, who hopefully was off that very day; and another one who has her best friend at hospital (hopefully alive). That's many people... I expect it to be similar to other people near Paris. It was really a major, shocking attack. Life here has changed, with a bit of fear in the population. Especially when there are rumours of future potential chemical attacks in the underground or in stadiums, theatre... Life must go on, though! Thanks again for your thoughts. -- Julien ÉLIE « Given a choice between fixing a small bug that affects something deep down in the guts, or making some flashy ui change that nobody wants, most bug fixers will choose the flash. » (Tomblin's Law)
Re: About compression ratio
Author: Julien ÉLIE
Date: Sat, 28 Nov 2015 19:20
Date: Sat, 28 Nov 2015 19:20
59 lines
2447 bytes
2447 bytes
Ken, >>> In summary: >>> * 1-line commands and answers have a greater size when compressed; >> >> This is certainly be true for short sessions such as your tests. I >> would expect the compression ratios to get a little better over time as >> the dictionary builds up and there is some repetition in the traffic, >> but I could be wrong. > > I'll try to simulate that. Now done, with (very) limited testing. They of course prove your expectation. [C] DATE [S] 111 20151128190322 [C] DATE [S] 111 20151128190325 [C] GROUP news.software.nntp [S] 211 8632 1 12886 news.software.nntp [C] GROUP news.admin.hierarchies [S] 211 1943 1 3002 news.admin.hierarchies Number of bytes without compression: [C] 6 [S] 20 [C] 6 [S] 20 [C] 26 [S] 37 [C] 30 [S] 40 Number of bytes with compression level 9: [C] 12 [S] 26 [C] 9 [S] 12 [C] 32 [S] 41 [C] 26 [S] 38 The second answer to DATE or GROUP from the server is smaller than the first. That's good. It would be interesting to do that with real use cases (downloading headers and articles from a news client). -- Julien ÉLIE « Aequum est ut cuius participauit lucrum, participet et damnun. »
Re: About compression ratio
Author: Julien ÉLIE
Date: Fri, 04 Dec 2015 19:16
Date: Fri, 04 Dec 2015 19:16
46 lines
2006 bytes
2006 bytes
> [C] DATE > [S] 111 20151128190322 > [C] DATE > [S] 111 20151128190325 > [C] GROUP news.software.nntp > [S] 211 8632 1 12886 news.software.nntp > [C] GROUP news.admin.hierarchies > [S] 211 1943 1 3002 news.admin.hierarchies > > Number of bytes without compression: > > [C] 6 > [S] 20 > [C] 6 > [S] 20 > [C] 26 > [S] 37 > [C] 30 > [S] 40 > > Number of bytes with compression level 9 and Z_SYNC_FLUSH: > > [C] 12 > [S] 26 > [C] 9 > [S] 12 > [C] 32 > [S] 41 > [C] 26 > [S] 38 Just tested with Z_PARTIAL_FLUSH. We indeed gain a few bytes: [S] 26 => 22 [S] 12 => 9 [S] 41 => 38 [S] 38 => 34 -- Julien ÉLIE « C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. »
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