Return-Path: <peter.tschipper@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 81EBA6C
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sat, 28 Nov 2015 14:48:44 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com
	[209.85.220.54])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 093E8A6
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sat, 28 Nov 2015 14:48:42 +0000 (UTC)
Received: by pacdm15 with SMTP id dm15so139281378pac.3
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sat, 28 Nov 2015 06:48:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=subject:to:references:from:message-id:date:user-agent:mime-version
	:in-reply-to:content-type;
	bh=OIgtWf8a3qkZATAwZMZIRHVacVhYqo+DW1U2kTbS6pE=;
	b=N+BpGgcPauafr/lO5ScigaNDZXKzsNlQvumRGgvk7xrLfOiQ/vSqQbUpc9fbFwxMeU
	O6UkLccrJp6ZkuwCQmWifDSvcOnrhWP7GOAHizvhmEPQw45/VJ02lY1KYiDB3vJL2zB+
	AH+s9Yt2Umm+1jCJzal/hu/tsoq2vJwoxn6lrKnplrb41V2VVop1sss25m+0/imJMlTe
	VEsF2SOVUuqTrJvE9QLlmhviR2aUsvg2eLOkqRndHwVHv9AKpi8x+DCX3bJ1nG2N3UNT
	d6zlbkL6pCVcHpScgyKo2rXTrGC19W22aHfNUHl7lmj+zuj09lym5l5xDGHMhnC1gmmj
	1DpA==
X-Received: by 10.66.234.226 with SMTP id uh2mr57967336pac.6.1448722122476;
	Sat, 28 Nov 2015 06:48:42 -0800 (PST)
Received: from [192.168.0.132] (S0106bcd165303d84.cc.shawcable.net.
	[96.54.102.88]) by smtp.googlemail.com with ESMTPSA id
	xr8sm41251703pab.26.2015.11.28.06.48.40
	for <bitcoin-dev@lists.linuxfoundation.org>
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sat, 28 Nov 2015 06:48:41 -0800 (PST)
To: bitcoin-dev@lists.linuxfoundation.org
References: <5640F172.3010004@gmail.com> <20151109210449.GE5886@mcelrath.org>
	<CAL7-sS0Apm4O_Qi0FmY7=H580rEVD6DYjk2y+ACpZmKqUJTQwA@mail.gmail.com>
	<CALOxbZtTUrZwDfy_jTbs60n=K8RKDGg5X0gkLsh-OX3ikLf1FQ@mail.gmail.com>
	<CAE-z3OUB-se_HUvW2NLjWt=0d5sgMiPEciu0hLzr_HQN0m9fqQ@mail.gmail.com>
	<5642172C.701@gmail.com>
	<CAE-z3OXgWCHL_3CDR-ACc7ojbLi7EavyObNa3s7hPUMGj_V2+A@mail.gmail.com>
	<CADm_WcYAj9_r6tu8Be-U81LDwWvnv04PZJMmc-S4cY7+jxfzGw@mail.gmail.com>
From: Peter Tschipper <peter.tschipper@gmail.com>
X-Enigmail-Draft-Status: N1110
Message-ID: <5659BEC9.50307@gmail.com>
Date: Sat, 28 Nov 2015 06:48:41 -0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
	Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <CADm_WcYAj9_r6tu8Be-U81LDwWvnv04PZJMmc-S4cY7+jxfzGw@mail.gmail.com>
Content-Type: multipart/alternative;
	boundary="------------040208060408020207060701"
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW
	autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
X-Mailman-Approved-At: Sat, 28 Nov 2015 16:07:19 +0000
Subject: Re: [bitcoin-dev] further test results for : "Datastream
 Compression of Blocks and Tx's"
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Development Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Sat, 28 Nov 2015 14:48:44 -0000

This is a multi-part message in MIME format.
--------------040208060408020207060701
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Hi All,

Here are some final results of testing with the reference implementation
for compressing blocks and transactions. This implementation also
concatenates blocks and transactions when possible so you'll see data
sizes in the 1-2MB ranges.

Results below show the time it takes to sync the first part of the
blockchain, comparing Zlib to the LZOx library.  (LZOf was also tried
but wasn't found to be as good as LZOx).  The following shows tests run
with and without latency.  With latency on the network, all compression
libraries performed much better than without compression.

I don't think it's entirely obvious which is better, Zlib or LZO. 
Although I prefer the higher compression of Zlib, overall I would have
to give the edge to LZO.  With LZO we have the fastest most scalable
option when at the lowest compression setting which will be a boost in
performance for users that want peformance over compression, and then at
the high end LZO provides decent compression which approaches Zlib,
(although at a higher cost) but good for those that want to save more
bandwidth.

Uncompressed 60ms 	Zlib-1 (60ms) 	Zlib-6 (60ms) 	LZOx-1 (60ms) 	LZOx-999
(60ms)
219 	299 	296 	294 	291
432 	568 	565 	558 	548
652 	835 	836 	819 	811
866 	1106 	1107 	1081 	1071
1082 	1372 	1381 	1341 	1333
1309 	1644 	1654 	1605 	1600
1535 	1917 	1936 	1873 	1875
1762 	2191 	2210 	2141 	2141
1992 	2463 	2486 	2411 	2411
2257 	2748 	2780 	2694 	2697
2627 	3034 	3076 	2970 	2983
3226 	3416 	3397 	3266 	3302
4010 	3983 	3773 	3625 	3703
4914 	4503 	4292 	4127 	4287
5806 	4928 	4719 	4529 	4821
6674 	5249 	5164 	4840 	5314
7563 	5603 	5669 	5289 	6002
8477 	6054 	6268 	5858 	6638
9843 	7085 	7278 	6868 	7679
11338 	8215 	8433 	8044 	8795



These results from testing on a highspeed wireless LAN (very small latency)

Results in seconds 	
	
	
	
	
Num blocks sync'd 	Uncompressed 	Zlib-1 	Zlib-6 	LZOx-1 	LZOx-999
10000 	255 	232 	233 	231 	257
20000 	464 	414 	420 	407 	453
30000 	677 	594 	611 	585 	650
40000 	887 	782 	795 	760 	849
50000 	1099 	961 	977 	933 	1048
60000 	1310 	1145 	1167 	1110 	1259
70000 	1512 	1330 	1362 	1291 	1470
80000 	1714 	1519 	1552 	1469 	1679
90000 	1917 	1707 	1747 	1650 	1882
100000 	2122 	1905 	1950 	1843 	2111
110000 	2333 	2107 	2151 	2038 	2329
120000 	2560 	2333 	2376 	2256 	2580
130000 	2835 	2656 	2679 	2558 	2921
140000 	3274 	3259 	3161 	3051 	3466
150000 	3662 	3793 	3547 	3440 	3919
160000 	4040 	4172 	3937 	3767 	4416
170000 	4425 	4625 	4379 	4215 	4958
180000 	4860 	5149 	4895 	4781 	5560
190000 	5855 	6160 	5898 	5805 	6557
200000 	7004 	7234 	7051 	6983 	7770



The following show the compression ratio acheived for various sizes of
data.  Zlib is the clear
winner for compressibility, with LZOx-999 coming close but at a cost.

range 	Zlib-1 cmp%
	Zlib-6 cmp% 	LZOx-1 cmp% 	LZOx-999 cmp%
0-250b 	12.44 	12.86 	10.79 	14.34
250-500b  	19.33 	12.97 	10.34 	11.11
600-700 	16.72 	n/a 	12.91 	17.25
700-800 	6.37 	7.65 	4.83 	8.07
900-1KB 	6.54 	6.95 	5.64 	7.9
1KB-10KB 	25.08 	25.65 	21.21 	22.65
10KB-100KB 	19.77 	21.57 	14.37 	19.02
100KB-200KB 	21.49 	23.56 	15.37 	21.55
200KB-300KB 	23.66 	24.18 	16.91 	22.76
300KB-400KB 	23.4 	23.7 	16.5 	21.38
400KB-500KB 	24.6 	24.85 	17.56 	22.43
500KB-600KB 	25.51 	26.55 	18.51 	23.4
600KB-700KB 	27.25 	28.41 	19.91 	25.46
700KB-800KB 	27.58 	29.18 	20.26 	27.17
800KB-900KB 	27 	29.11 	20 	27.4
900KB-1MB 	28.19 	29.38 	21.15 	26.43
1MB -2MB 	27.41 	29.46 	21.33 	27.73


The following shows the time in seconds to compress data of various
sizes.  LZO1x is the
fastest and as file sizes increase, LZO1x time hardly increases at all. 
It's interesing
to note as compression ratios increase LZOx-999 performs much worse than
Zlib.  So LZO is faster
on the low end and slower (5 to 6 times slower) on the high end.

range 	Zlib-1 	Zlib-6 	LZOx-1 	LZOx-999 cmp%
0-250b    	0.001 	0 	0 	0
250-500b   	0 	0 	0 	0.001
500-1KB     	0 	0 	0 	0.001
1KB-10KB    	0.001 	0.001 	0 	0.002
10KB-100KB   	0.004 	0.006 	0.001 	0.017
100KB-200KB  	0.012 	0.017 	0.002 	0.054
200KB-300KB  	0.018 	0.024 	0.003 	0.087
300KB-400KB  	0.022 	0.03 	0.003 	0.121
400KB-500KB  	0.027 	0.037 	0.004 	0.151
500KB-600KB  	0.031 	0.044 	0.004 	0.184
600KB-700KB  	0.035 	0.051 	0.006 	0.211
700KB-800KB  	0.039 	0.057 	0.006 	0.243
800KB-900KB  	0.045 	0.064 	0.006 	0.27
900KB-1MB   	0.049 	0.072 	0.006 	0.307


On 10/11/2015 8:46 AM, Jeff Garzik via bitcoin-dev wrote:
> Comments:
>
> 1) cblock seems a reasonable way to extend the protocol.  Further
> wrapping should probably be done at the stream level.
>
> 2) zlib has crappy security track record.
>
> 3) A fallback path to non-compressed is required, should compression
> fail or crash.
>
> 4) Most blocks and transactions have runs of zeroes and/or highly
> common bit-patterns, which contributes to useful compression even at
> smaller sizes.  Peter Ts's most recent numbers bear this out.  zlib
> has a dictionary (32K?) which works well with repeated patterns such
> as those you see with concatenated runs of transactions.
>
> 5) LZO should provide much better compression, at a cost of CPU
> performance and using a less-reviewed, less-field-tested library.
>
>
>
>
>
> On Tue, Nov 10, 2015 at 11:30 AM, Tier Nolan via bitcoin-dev
> <bitcoin-dev@lists.linuxfoundation.org
> <mailto:bitcoin-dev@lists.linuxfoundation.org>> wrote:
>
>
>
>     On Tue, Nov 10, 2015 at 4:11 PM, Peter Tschipper
>     <peter.tschipper@gmail.com <mailto:peter.tschipper@gmail.com>> wrote:
>
>         There are better ways of sending new blocks, that's certainly
>         true but for sending historical blocks and seding transactions
>         I don't think so.  This PR is really designed to save
>         bandwidth and not intended to be a huge performance
>         improvement in terms of time spent sending.
>
>
>     If the main point is for historical data, then sticking to just
>     blocks is the best plan.
>
>     Since small blocks don't compress well, you could define a
>     "cblocks" message that handles multiple blocks (just concatenate
>     the block messages as payload before compression). 
>
>     The sending peer could combine blocks so that each cblock is
>     compressing at least 10kB of block data (or whatever is optimal). 
>     It is probably worth specifying a maximum size for network buffer
>     reasons (either 1MB or 1 block maximum).
>
>     Similarly, transactions could be combined together and compressed
>     "ctxs".  The inv messages could be modified so that you can
>     request groups of 10-20 transactions.  That would depend on how
>     much of an improvement compressed transactions would represent.
>
>     More generally, you could define a message which is a compressed
>     message holder.  That is probably to complex to be worth the
>     effort though.
>
>      
>
>>
>>         On Tue, Nov 10, 2015 at 5:40 AM, Johnathan Corgan via
>>         bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org
>>         <mailto:bitcoin-dev@lists.linuxfoundation.org>> wrote:
>>
>>             On Mon, Nov 9, 2015 at 5:58 PM, gladoscc via bitcoin-dev
>>             <bitcoin-dev@lists.linuxfoundation.org
>>             <mailto:bitcoin-dev@lists.linuxfoundation.org>> wrote:
>>              
>>
>>                 I think 25% bandwidth savings is certainly
>>                 considerable, especially for people running full
>>                 nodes in countries like Australia where internet
>>                 bandwidth is lower and there are data caps.
>>
>>
>>             ​ This reinforces the idea that such trade-off decisions
>>             should be be local and negotiated between peers, not a
>>             required feature of the network P2P.​
>>              
>>
>>             -- 
>>             Johnathan Corgan
>>             Corgan Labs - SDR Training and Development Services
>>             http://corganlabs.com
>>
>>             _______________________________________________
>>             bitcoin-dev mailing list
>>             bitcoin-dev@lists.linuxfoundation.org
>>             <mailto:bitcoin-dev@lists.linuxfoundation.org>
>>             https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>>
>>
>>
>>
>>         _______________________________________________
>>         bitcoin-dev mailing list
>>         bitcoin-dev@lists.linuxfoundation.org
>>         <mailto:bitcoin-dev@lists.linuxfoundation.org>
>>         https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
>
>
>     _______________________________________________
>     bitcoin-dev mailing list
>     bitcoin-dev@lists.linuxfoundation.org
>     <mailto:bitcoin-dev@lists.linuxfoundation.org>
>     https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
>
>
>
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev


--------------040208060408020207060701
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi All,<br>
      <br>
      Here are some final results of testing with the reference
      implementation for compressing blocks and transactions. This
      implementation also concatenates blocks and transactions when
      possible so you'll see data sizes in the 1-2MB ranges.<br>
      <br>
      Results below show the time it takes to sync the first part of the
      blockchain, comparing Zlib to the LZOx library.  (LZOf was also
      tried but wasn't found to be as good as LZOx).  The following
      shows tests run with and without latency.  With latency on the
      network, all compression libraries performed much better than
      without compression.<br>
      <br>
      I don't think it's entirely obvious which is better, Zlib or LZO. 
      Although I prefer the higher compression of Zlib, overall I would
      have to give the edge to LZO.  With LZO we have the fastest most
      scalable option when at the lowest compression setting which will
      be a boost in performance for users that want peformance over
      compression, and then at the high end LZO provides decent
      compression which approaches Zlib, (although at a higher cost) but
      good for those that want to save more bandwidth.<br>
      <br>
      <table x:str="" style="border-collapse: collapse;width:403pt"
        border="0" width="536" cellpadding="0" cellspacing="0">
        <colgroup><col
            style="mso-width-source:userset;mso-width-alt:4717;width:97pt"
            width="129"> <col
            style="mso-width-source:userset;mso-width-alt:3437;width:71pt"
            width="94"> <col
            style="mso-width-source:userset;mso-width-alt:3547;width:73pt"
            width="97"> <col
            style="mso-width-source:userset;mso-width-alt:3693;width:76pt"
            width="101"> <col
            style="mso-width-source:userset;mso-width-alt:4205;width:86pt"
            width="115"> </colgroup><tbody>
          <tr style="mso-height-source:userset;height:15.75pt"
            height="21">
            <td style="height:15.75pt;width:97pt" height="21"
              width="129">Uncompressed 60ms</td>
            <td style="width:71pt" width="94">Zlib-1 (60ms)</td>
            <td style="width:73pt" width="97">Zlib-6 (60ms)</td>
            <td style="width:76pt" width="101">LZOx-1 (60ms)</td>
            <td style="width:86pt" width="115">LZOx-999 (60ms)</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">219</td>
            <td class="xl24" x:num="">299</td>
            <td class="xl24" x:num="">296</td>
            <td class="xl24" x:num="">294</td>
            <td class="xl24" x:num="">291</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">432</td>
            <td class="xl24" x:num="">568</td>
            <td class="xl24" x:num="">565</td>
            <td class="xl24" x:num="">558</td>
            <td class="xl24" x:num="">548</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">652</td>
            <td class="xl24" x:num="">835</td>
            <td class="xl24" x:num="">836</td>
            <td class="xl24" x:num="">819</td>
            <td class="xl24" x:num="">811</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">866</td>
            <td class="xl24" x:num="">1106</td>
            <td class="xl24" x:num="">1107</td>
            <td class="xl24" x:num="">1081</td>
            <td class="xl24" x:num="">1071</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">1082</td>
            <td class="xl24" x:num="">1372</td>
            <td class="xl24" x:num="">1381</td>
            <td class="xl24" x:num="">1341</td>
            <td class="xl24" x:num="">1333</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">1309</td>
            <td class="xl24" x:num="">1644</td>
            <td class="xl24" x:num="">1654</td>
            <td class="xl24" x:num="">1605</td>
            <td class="xl24" x:num="">1600</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">1535</td>
            <td class="xl24" x:num="">1917</td>
            <td class="xl24" x:num="">1936</td>
            <td class="xl24" x:num="">1873</td>
            <td class="xl24" x:num="">1875</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">1762</td>
            <td class="xl24" x:num="">2191</td>
            <td class="xl24" x:num="">2210</td>
            <td class="xl24" x:num="">2141</td>
            <td class="xl24" x:num="">2141</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">1992</td>
            <td class="xl24" x:num="">2463</td>
            <td class="xl24" x:num="">2486</td>
            <td class="xl24" x:num="">2411</td>
            <td class="xl24" x:num="">2411</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">2257</td>
            <td class="xl24" x:num="">2748</td>
            <td class="xl24" x:num="">2780</td>
            <td class="xl24" x:num="">2694</td>
            <td class="xl24" x:num="">2697</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">2627</td>
            <td class="xl24" x:num="">3034</td>
            <td class="xl24" x:num="">3076</td>
            <td class="xl24" x:num="">2970</td>
            <td class="xl24" x:num="">2983</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">3226</td>
            <td class="xl24" x:num="">3416</td>
            <td class="xl24" x:num="">3397</td>
            <td class="xl24" x:num="">3266</td>
            <td class="xl24" x:num="">3302</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">4010</td>
            <td class="xl24" x:num="">3983</td>
            <td class="xl24" x:num="">3773</td>
            <td class="xl24" x:num="">3625</td>
            <td class="xl24" x:num="">3703</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">4914</td>
            <td class="xl24" x:num="">4503</td>
            <td class="xl24" x:num="">4292</td>
            <td class="xl24" x:num="">4127</td>
            <td class="xl24" x:num="">4287</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">5806</td>
            <td class="xl24" x:num="">4928</td>
            <td class="xl24" x:num="">4719</td>
            <td class="xl24" x:num="">4529</td>
            <td class="xl24" x:num="">4821</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">6674</td>
            <td class="xl24" x:num="">5249</td>
            <td class="xl24" x:num="">5164</td>
            <td class="xl24" x:num="">4840</td>
            <td class="xl24" x:num="">5314</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">7563</td>
            <td class="xl24" x:num="">5603</td>
            <td class="xl24" x:num="">5669</td>
            <td class="xl24" x:num="">5289</td>
            <td class="xl24" x:num="">6002</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">8477</td>
            <td class="xl24" x:num="">6054</td>
            <td class="xl24" x:num="">6268</td>
            <td class="xl24" x:num="">5858</td>
            <td class="xl24" x:num="">6638</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">9843</td>
            <td class="xl24" x:num="">7085</td>
            <td class="xl24" x:num="">7278</td>
            <td class="xl24" x:num="">6868</td>
            <td class="xl24" x:num="">7679</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">11338</td>
            <td class="xl24" x:num="">8215</td>
            <td class="xl24" x:num="">8433</td>
            <td class="xl24" x:num="">8044</td>
            <td class="xl24" x:num="">8795</td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      These results from testing on a highspeed wireless LAN (very small
      latency)<br>
      <br>
      <table x:str="" style="border-collapse: collapse;width:405pt"
        border="0" width="540" cellpadding="0" cellspacing="0">
        <colgroup><col
            style="mso-width-source:userset;mso-width-alt:4498;
            width:92pt" span="2" width="123"> <col
            style="mso-width-source:userset;mso-width-alt:2560;width:53pt"
            width="70"> <col
            style="mso-width-source:userset;mso-width-alt:2669;width:55pt"
            width="73"> <col
            style="mso-width-source:userset;mso-width-alt:2596;width:53pt"
            width="71"> <col
            style="mso-width-source:userset;mso-width-alt:2925;width:60pt"
            width="80"> </colgroup><tbody>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt;width:92pt" height="17"
              width="123">Results in seconds</td>
            <td style="width:92pt" width="123"><br>
            </td>
            <td style="width:53pt" width="70"><br>
            </td>
            <td style="width:55pt" width="73"><br>
            </td>
            <td style="width:53pt" width="71"><br>
            </td>
            <td style="width:60pt" width="80"><br>
            </td>
          </tr>
          <tr style="mso-height-source:userset;height:15.75pt"
            height="21">
            <td style="height:15.75pt" height="21">Num blocks sync'd</td>
            <td>Uncompressed</td>
            <td>Zlib-1</td>
            <td>Zlib-6</td>
            <td>LZOx-1</td>
            <td>LZOx-999</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">10000</td>
            <td class="xl24" x:num="">255</td>
            <td class="xl24" x:num="">232</td>
            <td class="xl24" x:num="">233</td>
            <td class="xl24" x:num="">231</td>
            <td class="xl24" x:num="">257</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">20000</td>
            <td class="xl24" x:num="">464</td>
            <td class="xl24" x:num="">414</td>
            <td class="xl24" x:num="">420</td>
            <td class="xl24" x:num="">407</td>
            <td class="xl24" x:num="">453</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">30000</td>
            <td class="xl24" x:num="">677</td>
            <td class="xl24" x:num="">594</td>
            <td class="xl24" x:num="">611</td>
            <td class="xl24" x:num="">585</td>
            <td class="xl24" x:num="">650</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">40000</td>
            <td class="xl24" x:num="">887</td>
            <td class="xl24" x:num="">782</td>
            <td class="xl24" x:num="">795</td>
            <td class="xl24" x:num="">760</td>
            <td class="xl24" x:num="">849</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">50000</td>
            <td class="xl24" x:num="">1099</td>
            <td class="xl24" x:num="">961</td>
            <td class="xl24" x:num="">977</td>
            <td class="xl24" x:num="">933</td>
            <td class="xl24" x:num="">1048</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">60000</td>
            <td class="xl24" x:num="">1310</td>
            <td class="xl24" x:num="">1145</td>
            <td class="xl24" x:num="">1167</td>
            <td class="xl24" x:num="">1110</td>
            <td class="xl24" x:num="">1259</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">70000</td>
            <td class="xl24" x:num="">1512</td>
            <td class="xl24" x:num="">1330</td>
            <td class="xl24" x:num="">1362</td>
            <td class="xl24" x:num="">1291</td>
            <td class="xl24" x:num="">1470</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">80000</td>
            <td class="xl24" x:num="">1714</td>
            <td class="xl24" x:num="">1519</td>
            <td class="xl24" x:num="">1552</td>
            <td class="xl24" x:num="">1469</td>
            <td class="xl24" x:num="">1679</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">90000</td>
            <td class="xl24" x:num="">1917</td>
            <td class="xl24" x:num="">1707</td>
            <td class="xl24" x:num="">1747</td>
            <td class="xl24" x:num="">1650</td>
            <td class="xl24" x:num="">1882</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">100000</td>
            <td class="xl24" x:num="">2122</td>
            <td class="xl24" x:num="">1905</td>
            <td class="xl24" x:num="">1950</td>
            <td class="xl24" x:num="">1843</td>
            <td class="xl24" x:num="">2111</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">110000</td>
            <td class="xl24" x:num="">2333</td>
            <td class="xl24" x:num="">2107</td>
            <td class="xl24" x:num="">2151</td>
            <td class="xl24" x:num="">2038</td>
            <td class="xl24" x:num="">2329</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">120000</td>
            <td class="xl24" x:num="">2560</td>
            <td class="xl24" x:num="">2333</td>
            <td class="xl24" x:num="">2376</td>
            <td class="xl24" x:num="">2256</td>
            <td class="xl24" x:num="">2580</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">130000</td>
            <td class="xl24" x:num="">2835</td>
            <td class="xl24" x:num="">2656</td>
            <td class="xl24" x:num="">2679</td>
            <td class="xl24" x:num="">2558</td>
            <td class="xl24" x:num="">2921</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">140000</td>
            <td class="xl24" x:num="">3274</td>
            <td class="xl24" x:num="">3259</td>
            <td class="xl24" x:num="">3161</td>
            <td class="xl24" x:num="">3051</td>
            <td class="xl24" x:num="">3466</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">150000</td>
            <td class="xl24" x:num="">3662</td>
            <td class="xl24" x:num="">3793</td>
            <td class="xl24" x:num="">3547</td>
            <td class="xl24" x:num="">3440</td>
            <td class="xl24" x:num="">3919</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">160000</td>
            <td class="xl24" x:num="">4040</td>
            <td class="xl24" x:num="">4172</td>
            <td class="xl24" x:num="">3937</td>
            <td class="xl24" x:num="">3767</td>
            <td class="xl24" x:num="">4416</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">170000</td>
            <td class="xl24" x:num="">4425</td>
            <td class="xl24" x:num="">4625</td>
            <td class="xl24" x:num="">4379</td>
            <td class="xl24" x:num="">4215</td>
            <td class="xl24" x:num="">4958</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">180000</td>
            <td class="xl24" x:num="">4860</td>
            <td class="xl24" x:num="">5149</td>
            <td class="xl24" x:num="">4895</td>
            <td class="xl24" x:num="">4781</td>
            <td class="xl24" x:num="">5560</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">190000</td>
            <td class="xl24" x:num="">5855</td>
            <td class="xl24" x:num="">6160</td>
            <td class="xl24" x:num="">5898</td>
            <td class="xl24" x:num="">5805</td>
            <td class="xl24" x:num="">6557</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td class="xl24" style="height:12.75pt" x:num="" height="17">200000</td>
            <td class="xl24" x:num="">7004</td>
            <td class="xl24" x:num="">7234</td>
            <td class="xl24" x:num="">7051</td>
            <td class="xl24" x:num="">6983</td>
            <td class="xl24" x:num="">7770</td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      The following show the compression ratio acheived for various
      sizes of data.  Zlib is the clear<br>
      winner for compressibility, with LZOx-999 coming close but at a
      cost.<br>
      <br>
      <table x:str="" style="border-collapse: collapse;width:457pt"
        border="0" width="608" cellpadding="0" cellspacing="0">
        <colgroup><col
            style="mso-width-source:userset;mso-width-alt:8850;width:182pt"
            width="242"> <col
            style="mso-width-source:userset;mso-width-alt:2998;width:62pt"
            width="82"> <col
            style="mso-width-source:userset;mso-width-alt:3986;width:82pt"
            width="109"> <col
            style="mso-width-source:userset;mso-width-alt:4059;width:83pt"
            width="111"> <col style="width:48pt" width="64"> </colgroup><tbody>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt;width:182pt" height="17"
              width="242">range</td>
            <td style="width:62pt" width="82">Zlib-1 cmp%<br>
            </td>
            <td style="width:82pt" width="109">Zlib-6 cmp%</td>
            <td style="width:83pt" width="111">LZOx-1 cmp%</td>
            <td style="width:48pt" width="64">LZOx-999 cmp%</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">0-250b</td>
            <td class="xl22" x:num="">12.44</td>
            <td class="xl22" x:num="">12.86</td>
            <td class="xl22" x:num="">10.79</td>
            <td class="xl22" x:num="">14.34</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="250-500b " height="17">250-500b<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl22" x:num="">19.33</td>
            <td class="xl22" x:num="">12.97</td>
            <td class="xl22" x:num="">10.34</td>
            <td class="xl22" x:num="">11.11</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">600-700</td>
            <td class="xl22" x:num="">16.72</td>
            <td class="xl22">n/a</td>
            <td class="xl22" x:num="">12.91</td>
            <td class="xl22" x:num="">17.25</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">700-800</td>
            <td class="xl22" x:num="">6.37</td>
            <td class="xl22" x:num="">7.65</td>
            <td class="xl22" x:num="">4.83</td>
            <td class="xl22" x:num="">8.07</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">900-1KB</td>
            <td class="xl22" x:num="">6.54</td>
            <td class="xl22" x:num="">6.95</td>
            <td class="xl22" x:num="">5.64</td>
            <td class="xl22" x:num="">7.9</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">1KB-10KB</td>
            <td class="xl22" x:num="">25.08</td>
            <td class="xl22" x:num="">25.65</td>
            <td class="xl22" x:num="">21.21</td>
            <td class="xl22" x:num="">22.65</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">10KB-100KB</td>
            <td class="xl22" x:num="">19.77</td>
            <td class="xl22" x:num="">21.57</td>
            <td class="xl22" x:num="">14.37</td>
            <td class="xl22" x:num="">19.02</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">100KB-200KB</td>
            <td class="xl22" x:num="">21.49</td>
            <td class="xl22" x:num="">23.56</td>
            <td class="xl22" x:num="">15.37</td>
            <td class="xl22" x:num="">21.55</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">200KB-300KB</td>
            <td class="xl22" x:num="">23.66</td>
            <td class="xl22" x:num="">24.18</td>
            <td class="xl22" x:num="">16.91</td>
            <td class="xl22" x:num="">22.76</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">300KB-400KB</td>
            <td class="xl22" x:num="">23.4</td>
            <td class="xl22" x:num="">23.7</td>
            <td class="xl22" x:num="">16.5</td>
            <td class="xl22" x:num="">21.38</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">400KB-500KB</td>
            <td class="xl22" x:num="">24.6</td>
            <td class="xl22" x:num="">24.85</td>
            <td class="xl22" x:num="">17.56</td>
            <td class="xl22" x:num="">22.43</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">500KB-600KB</td>
            <td class="xl22" x:num="">25.51</td>
            <td class="xl22" x:num="">26.55</td>
            <td class="xl22" x:num="">18.51</td>
            <td class="xl22" x:num="">23.4</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">600KB-700KB</td>
            <td class="xl22" x:num="">27.25</td>
            <td class="xl22" x:num="">28.41</td>
            <td class="xl22" x:num="">19.91</td>
            <td class="xl22" x:num="">25.46</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">700KB-800KB</td>
            <td class="xl22" x:num="">27.58</td>
            <td class="xl22" x:num="">29.18</td>
            <td class="xl22" x:num="">20.26</td>
            <td class="xl22" x:num="">27.17</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">800KB-900KB</td>
            <td class="xl22" x:num="">27</td>
            <td class="xl22" x:num="">29.11</td>
            <td class="xl22" x:num="">20</td>
            <td class="xl22" x:num="">27.4</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">900KB-1MB</td>
            <td class="xl22" x:num="">28.19</td>
            <td class="xl22" x:num="">29.38</td>
            <td class="xl22" x:num="">21.15</td>
            <td class="xl22" x:num="">26.43</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" height="17">1MB -2MB</td>
            <td class="xl22" x:num="">27.41</td>
            <td class="xl22" x:num="">29.46</td>
            <td class="xl22" x:num="">21.33</td>
            <td class="xl22" x:num="">27.73</td>
          </tr>
        </tbody>
      </table>
      <br>
      The following shows the time in seconds to compress data of
      various sizes.  LZO1x is the<br>
      fastest and as file sizes increase, LZO1x time hardly increases at
      all.  It's interesing<br>
      to note as compression ratios increase LZOx-999 performs much
      worse than Zlib.  So LZO is faster<br>
      on the low end and slower (5 to 6 times slower) on the high end.<br>
      <br>
      <table x:str="" style="border-collapse: collapse;width:457pt"
        border="0" width="608" cellpadding="0" cellspacing="0">
        <colgroup><col
            style="mso-width-source:userset;mso-width-alt:8850;width:182pt"
            width="242"> <col
            style="mso-width-source:userset;mso-width-alt:2998;width:62pt"
            width="82"> <col
            style="mso-width-source:userset;mso-width-alt:3986;width:82pt"
            width="109"> <col
            style="mso-width-source:userset;mso-width-alt:4059;width:83pt"
            width="111"> <col style="width:48pt" width="64"> </colgroup><tbody>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt;width:182pt" height="17"
              width="242">range</td>
            <td style="width:62pt" width="82">Zlib-1</td>
            <td style="width:82pt" width="109">Zlib-6</td>
            <td style="width:83pt" width="111">LZOx-1</td>
            <td style="width:48pt" width="64">LZOx-999 cmp%</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="0-250b " height="17">0-250b<span
                style="mso-spacerun:yes">   </span></td>
            <td class="xl24" x:num="1E-3">0.001</td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="">0</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="250-500b " height="17">250-500b<span
                style="mso-spacerun:yes">  </span></td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="1E-3">0.001</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="500-1KB " height="17">500-1KB<span
                style="mso-spacerun:yes">    </span></td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="1E-3">0.001</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="1KB-10KB " height="17">1KB-10KB<span
                style="mso-spacerun:yes">   </span></td>
            <td class="xl24" x:num="1E-3">0.001</td>
            <td class="xl24" x:num="1E-3">0.001</td>
            <td class="xl24" x:num="">0</td>
            <td class="xl24" x:num="2E-3">0.002</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="10KB-100KB " height="17">10KB-100KB<span
                style="mso-spacerun:yes">  </span></td>
            <td class="xl24" x:num="4.0000000000000001E-3">0.004</td>
            <td class="xl24" x:num="6.0000000000000001E-3">0.006</td>
            <td class="xl24" x:num="1E-3">0.001</td>
            <td class="xl24" x:num="1.7000000000000001E-2">0.017</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="100KB-200KB " height="17">100KB-200KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="1.2E-2">0.012</td>
            <td class="xl24" x:num="1.7000000000000001E-2">0.017</td>
            <td class="xl24" x:num="2E-3">0.002</td>
            <td class="xl24" x:num="5.3999999999999999E-2">0.054</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="200KB-300KB " height="17">200KB-300KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="1.7999999999999999E-2">0.018</td>
            <td class="xl24" x:num="2.4E-2">0.024</td>
            <td class="xl24" x:num="3.0000000000000001E-3">0.003</td>
            <td class="xl24" x:num="8.6999999999999994E-2">0.087</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="300KB-400KB " height="17">300KB-400KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="2.1999999999999999E-2">0.022</td>
            <td class="xl24" x:num="">0.03</td>
            <td class="xl24" x:num="3.0000000000000001E-3">0.003</td>
            <td class="xl24" x:num="0.121">0.121</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="400KB-500KB " height="17">400KB-500KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="2.7E-2">0.027</td>
            <td class="xl24" x:num="3.6999999999999998E-2">0.037</td>
            <td class="xl24" x:num="4.0000000000000001E-3">0.004</td>
            <td class="xl24" x:num="0.151">0.151</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="500KB-600KB " height="17">500KB-600KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="3.1E-2">0.031</td>
            <td class="xl24" x:num="4.3999999999999997E-2">0.044</td>
            <td class="xl24" x:num="4.0000000000000001E-3">0.004</td>
            <td class="xl24" x:num="0.184">0.184</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="600KB-700KB " height="17">600KB-700KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="3.5000000000000003E-2">0.035</td>
            <td class="xl24" x:num="5.0999999999999997E-2">0.051</td>
            <td class="xl24" x:num="6.0000000000000001E-3">0.006</td>
            <td class="xl24" x:num="0.21099999999999999">0.211</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="700KB-800KB " height="17">700KB-800KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="3.9E-2">0.039</td>
            <td class="xl24" x:num="5.7000000000000002E-2">0.057</td>
            <td class="xl24" x:num="6.0000000000000001E-3">0.006</td>
            <td class="xl24" x:num="0.24299999999999999">0.243</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="800KB-900KB " height="17">800KB-900KB<span
                style="mso-spacerun:yes"> </span></td>
            <td class="xl24" x:num="4.4999999999999998E-2">0.045</td>
            <td class="xl24" x:num="6.4000000000000001E-2">0.064</td>
            <td class="xl24" x:num="6.0000000000000001E-3">0.006</td>
            <td class="xl24" x:num="">0.27</td>
          </tr>
          <tr style="height:12.75pt" height="17">
            <td style="height:12.75pt" x:str="900KB-1MB " height="17">900KB-1MB<span
                style="mso-spacerun:yes">  </span></td>
            <td class="xl24" x:num="4.9000000000000002E-2">0.049</td>
            <td class="xl24" x:num="7.1999999999999995E-2">0.072</td>
            <td class="xl24" x:num="6.0000000000000001E-3">0.006</td>
            <td class="xl24" x:num="0.307">0.307</td>
          </tr>
        </tbody>
      </table>
      <br>
      On 10/11/2015 8:46 AM, Jeff Garzik via bitcoin-dev wrote:<br>
    </div>
    <blockquote
cite="mid:CADm_WcYAj9_r6tu8Be-U81LDwWvnv04PZJMmc-S4cY7+jxfzGw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Comments:
        <div><br>
        </div>
        <div>1) cblock seems a reasonable way to extend the protocol. 
          Further wrapping should probably be done at the stream level.</div>
        <div><br>
        </div>
        <div>2) zlib has crappy security track record.</div>
        <div><br>
        </div>
        <div>3) A fallback path to non-compressed is required, should
          compression fail or crash.</div>
        <div><br>
        </div>
        <div>4) Most blocks and transactions have runs of zeroes and/or
          highly common bit-patterns, which contributes to useful
          compression even at smaller sizes.  Peter Ts's most recent
          numbers bear this out.  zlib has a dictionary (32K?) which
          works well with repeated patterns such as those you see with
          concatenated runs of transactions.</div>
        <div><br>
        </div>
        <div>5) LZO should provide much better compression, at a cost of
          CPU performance and using a less-reviewed, less-field-tested
          library.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Nov 10, 2015 at 11:30 AM, Tier
          Nolan via bitcoin-dev <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:bitcoin-dev@lists.linuxfoundation.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a></a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr"><br>
              <div class="gmail_extra"><br>
                <div class="gmail_quote"><span class="">On Tue, Nov 10,
                    2015 at 4:11 PM, Peter Tschipper <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:peter.tschipper@gmail.com"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:peter.tschipper@gmail.com">peter.tschipper@gmail.com</a></a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <span></span><span></span>There are better ways of
                      sending new blocks, that's certainly true but for
                      sending historical blocks and seding transactions
                      I don't think so.  This PR is really designed to
                      save bandwidth and not intended to be a huge
                      performance improvement in terms of time spent
                      sending.<span><br>
                      </span></blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>If the main point is for historical data, then
                    sticking to just blocks is the best plan.<br>
                    <br>
                  </div>
                  <div>Since small blocks don't compress well, you could
                    define a "cblocks" message that handles multiple
                    blocks (just concatenate the block messages as
                    payload before compression).  <br>
                    <br>
                    The sending peer could combine blocks so that each
                    cblock is compressing at least 10kB of block data
                    (or whatever is optimal).  It is probably worth
                    specifying a maximum size for network buffer reasons
                    (either 1MB or 1 block maximum).<br>
                    <br>
                  </div>
                  <div>Similarly, transactions could be combined
                    together and compressed "ctxs".  The inv messages
                    could be modified so that you can request groups of
                    10-20 transactions.  That would depend on how much
                    of an improvement compressed transactions would
                    represent. <br>
                    <br>
                  </div>
                  <div>More generally, you could define a message which
                    is a compressed message holder.  That is probably to
                    complex to be worth the effort though.<br>
                  </div>
                  <span class="">
                    <div><br>
                       </div>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"><span>
                          <blockquote type="cite">
                            <div class="gmail_extra"><br>
                              <div class="gmail_quote">On Tue, Nov 10,
                                2015 at 5:40 AM, Johnathan Corgan via
                                bitcoin-dev <span dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:bitcoin-dev@lists.linuxfoundation.org"
                                    target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a></a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div dir="ltr"><span>
                                      <div style="font-size:small">On
                                        Mon, Nov 9, 2015 at 5:58 PM,
                                        gladoscc via bitcoin-dev <span
                                          dir="ltr">&lt;<a
                                            moz-do-not-send="true"
                                            href="mailto:bitcoin-dev@lists.linuxfoundation.org"
                                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a></a>&gt;</span>
                                        wrote:<br>
                                      </div>
                                    </span>
                                    <div class="gmail_extra">
                                      <div class="gmail_quote"><span>
                                          <div> </div>
                                          <blockquote
                                            class="gmail_quote"
                                            style="margin:0 0 0
                                            .8ex;border-left:1px #ccc
                                            solid;padding-left:1ex">
                                            <div dir="ltr">I think 25%
                                              bandwidth savings is
                                              certainly considerable,
                                              especially for people
                                              running full nodes in
                                              countries like Australia
                                              where internet bandwidth
                                              is lower and there are
                                              data caps.</div>
                                          </blockquote>
                                          <div><br>
                                          </div>
                                        </span>
                                        <div>
                                          <div
                                            style="font-size:small;display:inline">​
                                            This reinforces the idea
                                            that such trade-off
                                            decisions should be be local
                                            and negotiated between
                                            peers, not a required
                                            feature of the network P2P.​</div>
                                           </div>
                                      </div>
                                      <span>
                                        <div><br>
                                        </div>
                                        -- <br>
                                        <div>
                                          <div dir="ltr">
                                            <div>
                                              <div dir="ltr">
                                                <div dir="ltr">
                                                  <div dir="ltr">
                                                    <div dir="ltr">
                                                      <div dir="ltr">
                                                        <div>Johnathan
                                                          Corgan<br>
                                                          Corgan Labs -
                                                          SDR Training
                                                          and
                                                          Development
                                                          Services</div>
                                                        <div><a
                                                          moz-do-not-send="true"
href="http://corganlabs.com" style="font-size:12.8px" target="_blank"><a class="moz-txt-link-freetext" href="http://corganlabs.com">http://corganlabs.com</a></a><br>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </span></div>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  bitcoin-dev mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:bitcoin-dev@lists.linuxfoundation.org"
                                    target="_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev"
                                    rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
                                  <br>
                                </blockquote>
                              </div>
                              <br>
                            </div>
                            <br>
                            <fieldset></fieldset>
                            <br>
                            <pre>_______________________________________________
bitcoin-dev mailing list
<a moz-do-not-send="true" href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a>
<a moz-do-not-send="true" href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a>
</pre>
                          </blockquote>
                          <br>
                        </span></div>
                    </blockquote>
                  </span></div>
                <br>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            bitcoin-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev"
              rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
bitcoin-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>
<a class="moz-txt-link-freetext" href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------040208060408020207060701--