Re: [hybi] Payload only compression extension, again

John Tamplin <jat@google.com> Mon, 02 May 2011 22:02 UTC

Return-Path: <jat@google.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 CB607E07DF for <hybi@ietfa.amsl.com>; Mon, 2 May 2011 15:02:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.503
X-Spam-Level:
X-Spam-Status: No, score=-104.503 tagged_above=-999 required=5 tests=[AWL=1.473, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 P-ldJx6WvVmz for <hybi@ietfa.amsl.com>; Mon, 2 May 2011 15:02:33 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by ietfa.amsl.com (Postfix) with ESMTP id 80699E07D9 for <hybi@ietf.org>; Mon, 2 May 2011 15:02:33 -0700 (PDT)
Received: from kpbe19.cbf.corp.google.com (kpbe19.cbf.corp.google.com [172.25.105.83]) by smtp-out.google.com with ESMTP id p42M2Vov016830 for <hybi@ietf.org>; Mon, 2 May 2011 15:02:31 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1304373751; bh=dAyVJGf74tC6sR7KTATuTL4BkYg=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rd242J7E4CJ8jgyY7wPXP2ranedm+crEqWwzRlHYzUoSSuf2mDvSKTGMztco9ViE5 xusGt2w4Mor8Qa/dlVqtg==
Received: from gyb11 (gyb11.prod.google.com [10.243.49.75]) by kpbe19.cbf.corp.google.com with ESMTP id p42M1HF7030615 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Mon, 2 May 2011 15:02:30 -0700
Received: by gyb11 with SMTP id 11so2645917gyb.29 for <hybi@ietf.org>; Mon, 02 May 2011 15:02:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=SPpFw7NTEyYYRuA485Z6DZdsGWfWf6cMxyiTHWRZXP4=; b=G0YEHWlyx/cwDeTGmOAbu2Kx1qMJLsA4uyzrwewYVifhjTuyZyP0YkLuxEAdC0gho0 lBY6wvcEGOwk5HGJHYcg==
DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=rddeAVUsAprvlWH1l4GneXMGCVCkF8y3c+IiB1Jsky2TRtzDHXDdvku+IcocIIwrMg kddUujL0rdR2NSprOZzQ==
Received: by 10.151.102.16 with SMTP id e16mr7665928ybm.287.1304373750147; Mon, 02 May 2011 15:02:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.199.16 with HTTP; Mon, 2 May 2011 15:02:10 -0700 (PDT)
In-Reply-To: <BANLkTi=-msm-ppt1n_2U5+bHoZO1i+Yj7A@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>
From: John Tamplin <jat@google.com>
Date: Mon, 02 May 2011 18:02:10 -0400
Message-ID: <BANLkTikEYhsdcrK1RqQTwjy3yuSVOaw=Dw@mail.gmail.com>
To: Greg Wilkins <gregw@intalio.com>
Content-Type: multipart/alternative; boundary="00151750ec70082b4f04a2522e75"
X-System-Of-Record: true
Cc: "hybi@ietf.org" <hybi@ietf.org>, Patrick McManus <pmcmanus@mozilla.com>
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: Mon, 02 May 2011 22:02:34 -0000

On Mon, May 2, 2011 at 5:59 PM, Greg Wilkins <gregw@intalio.com> wrote:

> > See the compression experiments I posted last May - if you don't maintain
> > compression state between frames, then you lose most of the benefit of
> > compression.  Being able to send uncompressed frames cheaply avoids the
> cost
> > of this, but doesn't fix not getting the benefit of compression.
> > Unfortunately, Java's default deflate implementation doesn't allow this,
> as
> > you need to flush out the compressed bits at the end of a frame (though
> you
> > can play tricks with changing the compression level to 0 and back, but
> that
> > seems non-portable).  I believe you can do it with jzlib though.
>
> Yes, the java std lib does appear lacking in this regard.  As I said,
> I'm just using it for prototyping and don't think that it's
> deficiencies should greatly influence any effort to standardise such
> an extension - specially if better libraries are available (argh! they
> have license clashes and eclipse IP issues... still not a problem for
> this group).
>

My point was I see little value in having a compression extension which
starts the compression state afresh with every frame, as on real-world
applications this gives poor performance.

-- 
John A. Tamplin
Software Engineer (GWT), Google