Re: [hybi] Payload only compression extension, again

Brian <theturtle32@gmail.com> Tue, 26 July 2011 00:56 UTC

Return-Path: <theturtle32@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8F87C21F8B75 for <hybi@ietfa.amsl.com>; Mon, 25 Jul 2011 17:56:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level:
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WT7SRV7YvSXv for <hybi@ietfa.amsl.com>; Mon, 25 Jul 2011 17:56:37 -0700 (PDT)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by ietfa.amsl.com (Postfix) with ESMTP id 8F78521F8B74 for <hybi@ietf.org>; Mon, 25 Jul 2011 17:56:36 -0700 (PDT)
Received: by ewy19 with SMTP id 19so3196447ewy.31 for <hybi@ietf.org>; Mon, 25 Jul 2011 17:56:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9x4RoTYBCjSoi+OGhv6jWNCpST4BjEHsihXOOMbK7V0=; b=pAy0lBvJMiJWfkdlc6ASuaHwycuvpUjX+YpBVSG1PEJPjVThh2P4UFCT7o9mZYtYuN 7E0HTPmQRvJu87yDYWLc6UKXkKiekltcc9jS4xBHj3fEzMegStLutBDXXLJXmr0MNCxQ Km4thFAPGhcs8W+P7s77KGuwff20D758x9rg0=
MIME-Version: 1.0
Received: by 10.204.142.14 with SMTP id o14mr1693864bku.15.1311641795582; Mon, 25 Jul 2011 17:56:35 -0700 (PDT)
Received: by 10.204.73.65 with HTTP; Mon, 25 Jul 2011 17:56:35 -0700 (PDT)
In-Reply-To: <CAH_y2NEYmvGPESMyKgMCHOXC1Yp1-cpbZH=X-zhMAhKTRsKgKQ@mail.gmail.com>
References: <AANLkTik2LqCC2-ZLLdWNNaQ18ypcQU_5djJobkYtYk6T@mail.gmail.com> <AANLkTik+uh98b0n7U=xrE0Aaa7MyBfZVXSwj+8wfVTKW@mail.gmail.com> <AANLkTinCtDepu+wDt4=8GyXqhfn=SQ7v2SjJhKzP2Mzr@mail.gmail.com> <AANLkTinhw0j5U_tvfCCrcEx=J6b7wBua4XzhWkvthUjL@mail.gmail.com> <BANLkTi=SjQwGQu-3v2wjniyp9DrQ1ZcQdA@mail.gmail.com> <BANLkTi=dqFN-57GV3rYDv4feTAaZFQko1g@mail.gmail.com> <BANLkTikWFwfs0FOuET5ZS1HEzjweNO0_CA@mail.gmail.com> <BANLkTikHXtVM+7nfz60toKTJCXBuMwMC1g@mail.gmail.com> <BANLkTinsMu+Znbg7Fe7+9HZeZg=Q8SwDHg@mail.gmail.com> <4DB8D3B2.8090002@mozilla.com> <BANLkTimE9qYEvBVLGbOsU7YDVGDwHpGjgA@mail.gmail.com> <BANLkTi=L=8r7dCkRa6MTC3AGziZWeM+fpA@mail.gmail.com> <BANLkTi=-msm-ppt1n_2U5+bHoZO1i+Yj7A@mail.gmail.com> <BANLkTikEYhsdcrK1RqQTwjy3yuSVOaw=Dw@mail.gmail.com> <BANLkTimhEai77LC53NFeOhgNzFQes7HS7g@mail.gmail.com> <BANLkTinW8SL-kwJs-ZsJPmqj269dT29N0A@mail.gmail.com> <CAH9hSJYkjiGPM6RihBkF54zFDXFn935Y0T4FU91G6ttekCyBwA@mail.gmail.com> <CALiegfkUa90DP=YAHJuyQK=CrMs4MoSguxca60fuxM16GgYr8w@mail.gmail.com> <CABLsOLAkdxrGJzqvmoBSxF3QH_zqjg2DHzW2TkfJC+iYiSXKrg@mail.gmail.com> <CAH9hSJZmdSU0j5WETz2A339Gbe=7BTp3VXfie0VChboQoJ=Pjw@mail.gmail.com> <CAH_y2NG6uWp_Utu_0NRXUA2-i+sMdFjDWnf42zM0JaOzojcXiA@mail.gmail.com> <CAH9hSJbS+y8+742OC0fc_1Hy8VgopPSG7yN+BgBCx4CY+kzGnQ@mail.gmail.com> <CABLsOLCk9DHHwk=NumpNruCgso5nr6_QwaLtfiZJ-m0Tp7vm_Q@mail.gmail.com> <CAH_y2NEYmvGPESMyKgMCHOXC1Yp1-cpbZH=X-zhMAhKTRsKgKQ@mail.gmail.com>
Date: Mon, 25 Jul 2011 17:56:35 -0700
Message-ID: <CAE8AN_VuTFi5OrOW7md1L_Ggqvyx9_8VPu+0LE6t9j31mHYcnQ@mail.gmail.com>
From: Brian <theturtle32@gmail.com>
To: Greg Wilkins <gregw@intalio.com>
Content-Type: multipart/alternative; boundary=0015174c3ca64c5acf04a8ee67b2
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Payload only compression extension, again
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jul 2011 00:56:37 -0000

FYI, the WebSocket API draft has already been updated to support binary
messages.

Brian

On Mon, Jul 25, 2011 at 4:56 PM, Greg Wilkins <gregw@intalio.com> wrote:

> On 26 July 2011 01:05, John Tamplin <jat@google.com> wrote:
> > That would also be useful if there were heuristics to choose when to
> > compress the data.
>
> Once there is a RSV bit used, then the sender can use a variety of
> different strategies to determine if to compress or not.  Heuristics
> is a good one and I think most server gzip filters apply simple
> heuristics (eg if uncompressed is > size and if compression does not
> overflow buffer of same size).   Although servers also have the
> benefit of mime types (eg don't try to compress image/jpg).
>
> > However, as long as the compression state is maintained across frames, I
> > don't think it is a real problem to simply compress everything.
>
> I think that is the simplest and best heuristic to start with, and
> will probably be beneficial in the vast majority of cases.
>
> From the browser side of things, it may be the only practical
> heuristic while the API is just simple text messages.   Perhaps when
> binary messages are supported something else might do better, but
> that's the benefit of using a RSV bit, as the strategy can evolve over
> time without the need to update the protocol specification.
>
> cheers
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>