Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 2B49D268 for ; Mon, 9 Nov 2015 20:41:40 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 589C0FD for ; Mon, 9 Nov 2015 20:41:39 +0000 (UTC) Received: by lfdo63 with SMTP id o63so13832546lfd.2 for ; Mon, 09 Nov 2015 12:41:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corganlabs_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=yXlmKDu/maMaGV3TjLOIgWsx3gLdGS+3oHppVBDtXsY=; b=PwWt6PzH72/Cpsibwitz+wb3XZXJ7Hvy+Wih2VtPenu9CxZsr78kHzopjO1uqEECLY aGWELbCpIojPbEluwpZDdMpqYazkpa4PRPc0Q+ykFkGFRWd+W3nc+wdFAHK8VEOgEQhy pbof5Dvqp+YDrch2zgvn/gXeN8wBo2wYhrcN3Eo/StWq7zK2h9r4AYII+C2QQrZIt1ej cdnNAPfR1qYwYOyopC5l3SQZJec1SY6CO/taQ9XIppZt7v2/nCHFoL8jlB8bGpbxmK3n RMxlMtkIguX0HQftgISdjs8ugE9pUTAoLNIWewVrYSVkbsdn3KBmeVIgfiWJJhcN8ABg 9J9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=yXlmKDu/maMaGV3TjLOIgWsx3gLdGS+3oHppVBDtXsY=; b=EXhwSzCnUeqZ74e4kMYk0ZjC24eXX6Lcx6VNxbc69vGktCG0FH1BtjUqdST+KXFhUm yvLqGQIrNrsn2k3E4814zQnnZS6YWQWwsSFLQ7F+pWHj0wfjY1fV8sAQZ6YaacRZqE/E Wm52dHUSBcF2Lk81jbeYrlDQ/+FPjM31ytx5TpB/3w27+asg1FWT3ZtVHIIziLk621yf ZZeZt64qOgdMIzL+PNsv3x9HZynNlgbbWl+iLABRDk9srx29rdBzms0TaQiAahkwP6Is O3EIQXmshBCbBB9f6jHpqF8vQTldFpHoIQcqhh8yQ+PXqRvb9yQ7q24+zQHtrfEqPR6e wO6Q== X-Gm-Message-State: ALoCoQk6+MRONzbtCGW0olMvbLrsvpFtGg719zQDpoWuk0VK19cyGNaM1b+QaTmz5e3gBSQHvm+i X-Received: by 10.25.23.42 with SMTP id n42mr6599974lfi.42.1447101697266; Mon, 09 Nov 2015 12:41:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.186.194 with HTTP; Mon, 9 Nov 2015 12:41:17 -0800 (PST) In-Reply-To: <5640F172.3010004@gmail.com> References: <5640F172.3010004@gmail.com> From: Johnathan Corgan Date: Mon, 9 Nov 2015 12:41:17 -0800 Message-ID: To: Peter Tschipper Content-Type: multipart/alternative; boundary=001a114057cc9eb2c60524219eba X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Cc: Bitcoin Dev Subject: Re: [bitcoin-dev] request BIP number for: "Support for Datastream Compression" X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2015 20:41:40 -0000 --001a114057cc9eb2c60524219eba Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Nov 9, 2015 at 11:18 AM, Peter Tschipper via bitcoin-dev < bitcoin-dev@lists.linuxfoundation.org> wrote: > I opened a PR #6973 this morning for Zlib Block Compression for block > relay and at the request of @sipa this should have a BIP associated > with it. The idea is simple, to compress the datastream before > sending, initially for blocks only but it could theoretically be done > for transactions as well. Initial results show an average of 20% block > compression and taking 90 milliseconds for a full block (on a very slow > laptop) to compress. The savings will be mostly in terms of less > bandwidth used, but I would expect there to be a small performance gain > during the transmission of the blocks particularly where network latency > is higher. > =E2=80=8BThe trade-off decisions among bandwidth savings, CPU performance, = and latency are local, and I think it shouldn't be assumed that any particular node will want to support it. I recommend that if P2P message compression is implemented, it should be negotiated via the services field at connection time. --=20 Johnathan Corgan Corgan Labs - SDR Training and Development Services http://corganlabs.com --001a114057cc9eb2c60524219eba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On = Mon, Nov 9, 2015 at 11:18 AM, Peter Tschipper via bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org> wrote:
=C2=A0
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">I opened a PR #6973 this morning for Zlib Blo= ck Compression for block
relay and at the request of @sipa=C2=A0 this should have a BIP associated with it.=C2=A0 =C2=A0The idea is simple, to compress the datastream before<= br> sending, initially for blocks only but it could theoretically be done
for transactions as well.=C2=A0 Initial results show an average of 20% bloc= k
compression and taking 90 milliseconds for a full block (on a very slow
laptop) to compress.=C2=A0 The savings will be mostly in terms of less
bandwidth used, but I would expect there to be a small performance gain
during the transmission of the blocks particularly where network latency is higher.

=E2=80=8BThe trade-off decisions among bandwidth= savings, CPU performance, and latency are local, and I think it shouldn= 9;t be assumed that any particular node will want to support it.=C2=A0 I re= commend that if P2P message compression is implemented, it should be negoti= ated via the services field at connection time.

<= /div>--
Johnathan Corgan
C= organ Labs - SDR Training and Development Services
--001a114057cc9eb2c60524219eba--